Part Number Hot Search : 
HFC5A 1N6302 PD25HB 26C321 MC145425 2SC5324 FC120 ISL33002
Product Description
Full Text Search
 

To Download EM78M611E Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  e m 7 8 m 6 1 1 e        
   
        
   
        
   
        
   




    
                 
                 
                 
            



p r o d u c t s p e c i f i c a t i o n d o c . v e r s i o n 1 . 1 e l a n m i c r o e l e c t r o n i c s c o r p . n o v e m b e r 2 0 0 6
t r a d e m a r k a c k n o w l e d g m e n t s : i b m i s a r e g i s t e r e d t r a d e m a r k a n d p s / 2 i s a t r a d e m a r k o f i b m . w i n d o w s i s a t r a d e m a r k o f m i c r o s o f t c o r p o r a t i o n . e l a n a n d e l a n l o g o a r e t r a d e m a r k s o f e l a n m i c r o e l e c t r o n i c s c o r p o r a t i o n . c o p y r i g h t ? 2 0 0 6 b y e l a n m i c r o e l e c t r o n i c s c o r p o r a t i o n a l l r i g h t s r e s e r v e d p r i n t e d i n t a i w a n t h e c o n t e n t s o f t h i s s p e c i f i c a t i o n a r e s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e . e l a n m i c r o e l e c t r o n i c s a s s u m e s n o r e s p o n s i b i l i t y c o n c e r n i n g t h e a c c u r a c y , a d e q u a c y , o r c o m p l e t e n e s s o f t h i s s p e c i f i c a t i o n . e l a n m i c r o e l e c t r o n i c s m a k e s n o c o m m i t m e n t t o u p d a t e , o r t o k e e p c u r r e n t t h e i n f o r m a t i o n a n d m a t e r i a l c o n t a i n e d i n t h i s s p e c i f i c a t i o n . s u c h i n f o r m a t i o n a n d m a t e r i a l m a y c h a n g e t o c o n f o r m t o e a c h c o n f i r m e d o r d e r . i n n o e v e n t s h a l l e l a n m i c r o e l e c t r o n i c s b e m a d e r e s p o n s i b l e f o r a n y c l a i m s a t t r i b u t e d t o e r r o r s , o m i s s i o n s , o r o t h e r i n a c c u r a c i e s i n t h e i n f o r m a t i o n o r m a t e r i a l c o n t a i n e d i n t h i s s p e c i f i c a t i o n . e l a n m i c r o e l e c t r o n i c s s h a l l n o t b e l i a b l e f o r d i r e c t , i n d i r e c t , s p e c i a l i n c i d e n t a l , o r c o n s e q u e n t i a l d a m a g e s a r i s i n g f r o m t h e u s e o f s u c h i n f o r m a t i o n o r m a t e r i a l . t h e s o f t w a r e ( i f a n y ) d e s c r i b e d i n t h i s s p e c i f i c a t i o n i s f u r n i s h e d u n d e r a l i c e n s e o r n o n d i s c l o s u r e a g r e e m e n t , a n d m a y b e u s e d o r c o p i e d o n l y i n a c c o r d a n c e w i t h t h e t e r m s o f s u c h a g r e e m e n t . e l a n m i c r o e l e c t r o n i c s p r o d u c t s a r e n o t i n t e n d e d f o r u s e i n l i f e s u p p o r t a p p l i a n c e s , d e v i c e s , o r s y s t e m s . u s e o f e l a n m i c r o e l e c t r o n i c s p r o d u c t i n s u c h a p p l i c a t i o n s i s n o t s u p p o r t e d a n d i s p r o h i b i t e d . n o p a r t o f t h i s s p e c i f i c a t i o n m a y b e r e p r o d u c e d o r t r a n s m i t t e d i n a n y f o r m o r b y a n y m e a n s w i t h o u t t h e e x p r e s s e d w r i t t e n p e r m i s s i o n o f e l a n m i c r o e l e c t r o n i c s .    

              

          
h e a d q u a r t e r s : n o . 1 2 , i n n o v a t i o n r o a d 1 h s i n c h u s c i e n c e p a r k h s i n c h u , t a i w a n 3 0 0 7 7 t e l : + 8 8 6 3 5 6 3 - 9 9 7 7 f a x : + 8 8 6 3 5 6 3 - 9 9 6 6 h t t p : / / w w w . e m c . c o m . t w h o n g k o n g : e l a n ( h k ) m i c r o e l e c t r o n i c s c o r p o r a t i o n , l t d . f l a t a , 1 9 f . , w o r l d t e c h c e n t r e 9 5 h o w m i n g s t r e e t , k w u n t o n g k o w l o o n , h o n g k o n g t e l : + 8 5 2 2 7 2 3 - 3 3 7 6 f a x : + 8 5 2 2 7 2 3 - 7 7 8 0 e l a n h k @ e m c . c o m . h k u s a : e l a n i n f o r m a t i o n t e c h n o l o g y g r o u p ( u . s . a . ) 1 8 2 1 s a r a t o g a a v e . , s u i t e 2 5 0 s a r a t o g a , c a 9 5 0 7 0 u . s . a . t e l : + 1 4 0 8 3 6 6 - 8 2 2 5 f a x : + 1 4 0 8 3 6 6 - 8 2 2 0 e u r o p e : e l a n m i c r o e l e c t r o n i c s c o r p . ( e u r o p e ) s i e w e r d t s t r a s s e 1 0 5 8 0 5 0 z u r i c h , s w i t z e r l a n d t e l : + 4 1 4 3 2 9 9 - 4 0 6 0 f a x : + 4 1 4 3 2 9 9 - 4 0 7 9 h t t p : / / w w w . e l a n - e u r o p e . c o m s h e n z h e n : e l a n m i c r o e l e c t r o n i c s s h e n z h e n , l t d . s s m e c b l d g . , 3 f , g a o x i n s . a v e . s h e n z h e n h i - t e c h i n d u s t r i a l p a r k s h e n z h e n , g u a n d o n g , c h i n a t e l : + 8 6 7 5 5 2 6 0 1 - 0 5 6 5 f a x : + 8 6 7 5 5 2 6 0 1 - 0 5 0 0 s h a n g h a i : e l a n m i c r o e l e c t r o n i c s s h a n g h a i , l t d . 2 3 / b l d g . # 1 1 5 l a n e 5 7 2 , b i b o r o a d z h a n g j i a n g h i - t e c h p a r k s h a n g h a i , c h i n a t e l : + 8 6 2 1 5 0 8 0 - 3 8 6 6 f a x : + 8 6 2 1 5 0 8 0 - 4 6 0 0
c o n t e n t s p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 1 ) 0 4 . 2 0 . 2 0 0 6 i i i                                     1 g e n e r a l d e s c r i p t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 f e a t u r e s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 t y p e d e f i n i t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 4 a p p l i c a t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 5 p i n a s s i g n m e n t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 6 p i n d e s c r i p t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 7 b l o c k d i a g r a m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 8 f u n c t i o n d e s c r i p t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 8 . 1 p r o g r a m m e m o r y . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 8 . 2 d a t a m e m o r y . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 8 . 2 . 1 s p e c i a l p u r p o s e r e g i s t e r . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 8 . 2 . 2 o p e r a t i o n r e g i s t e r s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 0 8 . 2 . 2 . 1 r 0 ( i n d i r e c t a d d r e s s i n g r e g i s t e r ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 0 8 . 2 . 2 . 2 r 1 ( t i m e r / c l o c k c o u n t e r ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 0 8 . 2 . 2 . 3 r 2 ( p r o g r a m c o u n t e r & s t a c k ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 0 8 . 2 . 2 . 4 r 3 ( s t a t u s r e g i s t e r ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1 8 . 2 . 2 . 5 r 4 ( r a m s e l e c t r e g i s t e r ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 8 . 2 . 2 . 6 r 5 ( p o r t 5 i / o r e g i s t e r ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 8 . 2 . 2 . 7 r 6 ( p o r t 6 i / o r e g i s t e r ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 8 . 2 . 2 . 8 r 7 ( p o r t 7 i / o r e g i s t e r ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 8 . 2 . 2 . 9 r 8 ( p o r t 8 i / o r e g i s t e r ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 8 . 2 . 2 . 1 0 r 9 ( p o r t 9 i / o r e g i s t e r ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 8 . 2 . 2 . 1 1 r a ( e e p r o m c o n t r o l r e g i s t e r . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 4 8 . 2 . 2 . 1 2 r b ( p a t t e r n d e t e c t a p p l i c a t i o n c o n t r o l r e g i s t e r ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 4 8 . 2 . 2 . 1 3 r c ( u s b a p p l i c a t i o n s t a t u s r e g i s t e r ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 4 8 . 2 . 2 . 1 2 r d ( u s b a p p l i c a t i o n f i f o a d d r e s s r e g i s t e r ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 5 8 . 2 . 2 . 1 3 r e ( u s b a p p l i c a t i o n f i f o d a t a r e g i s t e r ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 5 8 . 2 . 2 . 1 4 r f ( i n t e r r u p t s t a t u s r e g i s t e r ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 5 8 . 2 . 3 c o n t r o l r e g i s t e r s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 6 8 . 2 . 3 . 1 a ( a c c u m u l a t o r ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 6 8 . 2 . 3 . 2 c o n t ( c o n t r o l r e g i s t e r ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 7 8 . 2 . 3 . 3 i o c 5 ~ i o c 9 i / o ( p o r t d i r e c t i o n c o n t r o l r e g i s t e r s ) . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 8 8 . 2 . 3 . 4 i o c a ( o p e r a t i o n m o d e c o n t r o l r e g i s t e r ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 8 8 . 2 . 3 . 5 i o c b ( p o r t 9 w a k e - u p p i n s e l e c t r e g i s t e r ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 9 8 . 2 . 3 . 7 i o c d ( p o r t 9 p u l l h i g h c o n t r o l r e g i s t e r ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 9 8 . 2 . 3 . 8 i o c e ( s p e c i a l f u n c t i o n c o n t r o l r e g i s t e r ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 0 8 . 2 . 3 . 9 i o c f ( i n t e r r u p t m a s k r e g i s t e r ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1
c o n t e n t s i v p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 ) 1 1 . 2 2 . 2 0 0 6 8 . 3 e x t r a c o n t r o l r e g i s t e r . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1 8 . 4 u s b a p p l i c a t i o n f i f o s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1 8 . 5 u s b a p p l i c a t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 8 . 5 . 1 u s b d e v i c e c o n t r o l l e r . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 8 . 5 . 2 d e v i c e a d d r e s s a n d e n d p o i n t s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 3 8 . 6 r e s e t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 3 8 . 6 . 1 p o w e r - o n r e s e t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 3 8 . 6 . 2 w a t c h d o g r e s e t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 3 8 . 6 . 3 u s b r e s e t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 3 8 . 7 s a v i n g p o w e r m o d e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 3 8 . 7 . 1 p o w e r d o w n m o d e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 3 8 . 7 . 2 d u a l c l o c k m o d e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 4 8 . 8 i n t e r r u p t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 4 8 . 9 p a t t e r n d e t e c t a p p l i c a t i o n ( p d a ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 5 8 . 9 . 1 f u n c t i o n d e s c r i p t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 5 8 . 9 . 2 c o n t r o l r e g i s t e r . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 6 8 . 9 . 3 s a m p l i n g r a t e a n d d e b o u n c e l e n g t h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 6 8 . 1 0 p u l s e w i d t h m o d u l a t i o n ( p w m ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 8 8 . 1 0 . 1 f u n c t i o n d e s c r i p t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 8 8 . 1 0 . 2 d u t y c y c l e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 8 8 . 1 0 . 3 c o n t r o l r e g i s t e r . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 8 8 . 1 1 a n a l o g - t o - d i g i t a l c o n v e r t e r ( a d c ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 9 8 . 1 1 . 1 f u n c t i o n d e s c r i p t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 9 8 . 1 1 . 2 c o n t r o l r e g i s t e r . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 9 8 . 1 2 e e p r o m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1 9 a b s o l u t e m a x i m u m r a t i n g s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2 1 0 d c e l e c t r i c a l c h a r a c t e r i s t i c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2 1 1 a p p l i c a t i o n c i r c u i t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 4 a p p e n d i x a s p e c i a l r e g i s t e r m a p . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 5 b i n s t r u c t i o n s e t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 7 c c o d e o p t i o n r e g i s t e r . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 9 s p e c i f i c a t i o n r e v i s i o n h i s t o r y d o c . v e r s i o n r e v i s i o n d e s c r i p t i o n d a t e 1 . 0 p r e l i m i n a r y v e r s i o n 2 0 0 6 / 0 4 / 1 7 1 . 1 r e l e a s e d v e r s i o n 2 0 0 6 / 1 1 / 2 4
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 1 ) 0 4 . 2 0 . 2 0 0 7 1 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) 1 g e n e r a l d e s c r i p t i o n t h e e m 7 8 6 1 1 e i s a s e r i e s o f 8 - b i t u n i v e r s a l s e r i a l b u s r i s c a r c h i t e c t u r e m i c r o c o n t r o l l e r , m u l t i - t i m e p r o g r a m m i n g ( m t p ) m i c r o c o n t r o l l e r s . i t i s s p e c i f i c a l l y d e s i g n e d f o r u s b l o w s p e e d d e v i c e a p p l i c a t i o n a n d t o s u p p o r t s t a n d a r d d e v i c e s s u c h a s p s / 2 k e y b o a r d . t h e e m 7 8 6 1 1 e a l s o s u p p o r t s o n e d e v i c e a d d r e s s a n d t h r e e e n d p o i n t s . w i t h n o f i r m w a r e i n v o l v e d , t h e s e s e r i e s o f m i c r o c o n t r o l l e r s c a n a u t o m a t i c a l l y i d e n t i f y a n d d e c o d e s t a n d a r d u s b c o m m a n d t o e n d p o i n t z e r o . t h e e m 7 8 6 1 1 e h a s e i g h t - l e v e l s t a c k s a n d s i x i n t e r r u p t s o u r c e s . i t h a s 1 4 4 b y t e s o f g e n e r a l p u r p o s e s r a m , 6 k b y t e s o f p r o g r a m r o m , a n d a n e m b e d d e d 4 b y t e s o f e 2 p r o m . t h e s e s e r i e s o f i c s h a v e m a n y p o w e r f u l f e a t u r e s , i n c l u d i n g :  d u a l c l o c k m o d e w h i c h a l l o w s t h e d e v i c e t o r u n o n l o w p o w e r s a v i n g f r e q u e n c y .  p a t t e r n d e t e c t a p p l i c a t i o n f u n c t i o n w h i c h i s u s e d i n a s e r i a l t r a n s m i s s i o n t o c o u n t w a v e f o r m w i d t h .  p a u s e w i d t h m o d u l a t i o n t h a t c a n g e n e r a t e a d u t y - c y c l e - p r o g r a m m a b l e s i g n a l .  2 4 - c h a n n e l a d c o n v e r t e r w i t h u p t o 1 0 b i t s r e s o l u t i o n . 2 f e a t u r e s  o p e r a t i n g v o l t a g e : 4 . 4 v ~ 5 . 5 v  l o w - c o s t s o l u t i o n f o r l o w - s p e e d u s b d e v i c e s , s u c h a s k e y b o a r d , j o y s t i c k , a n d g a m e p a d  u s b s p e c i f i c a t i o n c o m p l i a n c e  u n i v e r s a l s e r i a l b u s s p e c i f i c a t i o n v e r s i o n 1 . 1  u s b d e v i c e c l a s s d e f i n i t i o n f o r h u m a n i n t e r f a c e d e v i c e ( h i d ) , f i r m w a r e s p e c i f i c a t i o n v e r s i o n 1 . 1  s u p p o r t s o n e d e v i c e a d d r e s s a n d t h r e e e n d p o i n t s  u s b a p p l i c a t i o n  p 7 5 ( d - ) h a s a n i n t e r n a l p u l l - h i g h r e s i s t o r ( 1 . 5 k w )  u s b p r o t o c o l h a n d l i n g  u s b d e v i c e s t a t e h a n d l i n g  i d e n t i f y i n g a n d d e c o d i n g o f s t a n d a r d u s b c o m m a n d s t o e n d p o i n t z e r o  p s / 2 a p p l i c a t i o n s u p p o r t  b u i l t - i n p s / 2 p o r t i n t e r f a c e f o r k e y b o a r d a n d m o u s e
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r 2 p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 ) 1 1 . 2 2 . 2 0 0 6 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e )  b u i l t - i n 8 - b i t r i s c m c u  8 - l e v e l s t a c k s f o r s u b r o u t i n e n e s t i n g a n d i n t e r r u p t  8 - b i t r e a l t i m e c l o c k / c o u n t e r ( t c c ) w i t h o v e r f l o w i n t e r r u p t  s i x a v a i l a b l e i n t e r r u p t s  b u i l t - i n r c o s c i l l a t o r f r e e r u n n i n g f o r w a t c h d o g t i m e r a n d d u a l c l o c k m o d e  t w o i n d e p e n d e n t p r o g r a m m a b l e p r e s c a l e r s f o r w d t a n d t c c  t w o p o w e r s a v i n g m e t h o d s : 1 . p o w e r - d o w n m o d e ( s l e e p m o d e ) 2 . d u a l c l o c k m o d e  t w o c l o c k s p e r i n s t r u c t i o n c y c l e  m u l t i - t i m e p r o g r a m m a b l e  i / o p o r t s  u p t o 1 1 l e d s i n k p i n s  e a c h g p i o p i n o f p o r t s 5 , 6 , 8 , p 9 0 ~ p 9 3 , p 9 5 a n d p 9 6 ; h a s a n i n t e r n a l p r o g r a m m a b l e p u l l - h i g h r e s i s t o r ( 2 5 k w )  e a c h g p i o p i n o f p o r t 6 , p 7 4 ~ p 7 7 a n d p o r t 9 c a n w a k e u p t h e m c u f r o m s l e e p m o d e b y i n p u t s t a t e c h a n g e  i n t e r n a l m e m o r y  b u i l t - i n 6 k 1 3 b i t s p r o g r a m r o m  b u i l t - i n 1 4 4 b y t e s g e n e r a l p u r p o s e r e g i s t e r s ( s r a m )  b u i l t - i n u s b a p p l i c a t i o n f i f o s  b u i l t - i n 4 b y t e s e e p r o m w i t h a m i n i m u m o f 4 k w r i t e / e r a s e c y c l e s  o p e r a t i o n f r e q u e n c y  n o r m a l m o d e : m c u r u n s w i t h a n e x t e r n a l o s c i l l a t o r f r e q u e n c y o f 6 m h z o r 1 2 m h z  d u a l c l o c k m o d e : m c u r u n s a t a f r e q u e n c y o f 2 5 6 k h z ( o r 3 2 k h z , 4 k h z , 5 0 0 h z ) , e m i t t e d b y t h e i n t e r n a l o s c i l l a t o r w i t h t h e e x t e r n a l c e r a m i c r e s o n a t o r t u r n e d o f f t o s a v e p o w e r .  b u i l t - i n p a t t e r n d e t e c t a p p l i c a t i o n f o r s e r i a l s i g n a l t r a n s m i s s i o n  b u i l t - i n p u l s e w i d t h m o d u l a t i o n ( p w m )  u p t o 2 c h a n n e l s p w m f u n c t i o n o n p 9 2 ( p w m 1 ) a n d p 9 3 ( p w m 2 )  u p t o 8 - b i t r e s o l u t i o n p w m o u t p u t  u p t o 8 s e l e c t i o n s o f d u t y c y c l e s
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 1 ) 0 4 . 2 0 . 2 0 0 7 3 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e )  b u i l t - i n 2 4 - c h a n n e l a n a l o g - t o - d i g i t a l c o n v e r t e r ( a d c )  u p t o 2 4 c h a n n e l s  u p t o 1 0 b i t s r e s o l u t i o n  4 a d c c o n v e r s i o n r a t e s : 2 5 6 k / 1 2 8 k / 6 4 k / 3 2 k  b u i l t - i n 3 . 3 v v o l t a g e r e g u l a t o r  f o r m c u p o w e r s u p p l y  p u l l - u p s o u r c e f o r t h e e x t e r n a l u s b r e s i s t o r o n d - p i n  p a c k a g e t y p e :  4 0 - p i n p d i p ( 6 0 0 m i l ) ( e m 7 8 m 6 1 1 e x a p )  4 4 - p i n q f p ( 1 0 1 0 m m , f o o t p r i n t = 3 . 2 m m ) ( e m 7 8 m 6 1 1 e x a q )  2 0 - p i n p d i p ( 3 0 0 m i l ) / s o p ( 3 0 0 m i l ) ( e m 7 8 m 6 1 1 e x b p / b m )  2 0 - p i n s s o p ( 2 0 9 m i l ) ( e m 7 8 m 6 1 1 e x d m )  2 4 - p i n p d i p ( 6 0 0 m i l ) / s o p ( 3 0 0 m i l ) ( e m 7 8 m 6 1 1 e x c p / c m )  2 4 - p i n s s o p ( 1 5 0 m i l ) ( e m 7 8 m 6 1 1 e x e m ) 3 t y p e d e f i n i t i o n t h e e m 7 8 m 6 1 1 e s e r i e s h a s s i x t y p e s o f p a c k a g i n g . e a c h t y p e i s d i v i d e d i n t o t w o m o d u l e s , n a m e l y ; o r i g i n a l , a n d w i t h b o t h e 2 p r o m a n d a / d c o n v e r t e r . h e n c e , p a c k a g i n g c o n f i g u r a t i o n f o r e a c h s e r i e s i s d e f i n e d . t a b l e 3 . 1 b e l o w s u m m a r i z e s w h i c h s e r i e s o f t h e e m 7 8 m 6 1 1 e b e l o n g t o w h i c h m o d u l e . t a b l e 3 - 1 p a c k a g i n g s u m m a r y o f e m 7 8 m 6 1 1 e s e r i e s i c o r i g i n a l w i t h b o t h e m 7 8 m 6 1 1 e a * * e m 7 8 m 6 1 1 e d * * 4 a p p l i c a t i o n  u s b k e y b o a r d o n l y  u s b a n d p s / 2 b o t h c o m p a t i b l e w i t h k e y b o a r d  u s b k e y b o a r d w i t h u s b m o u s e  u s b j o y s t i c k
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r 4 p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 ) 1 1 . 2 2 . 2 0 0 6 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) 5 p i n a s s i g n m e n t 12 3 4 5 6 7 8 9 1 0 1 1 1 2 2 9 3 0 3 5 3 6 3 7 3 8 3 9 4 0 v s s v 3 . 3 d + / c l k . p 7 4 d - / d a t a / p 7 5 p 9 0 p 9 1 p 9 2 / s e 1 / p w m 1 p 9 3 / s e 2 / p w m 2 p 9 4 / v p p v n n p 6 4 / a d 2 0 p 6 5 / a d 2 1 p 6 6 / a d 2 2 p 6 7 / a d 2 3 p 7 2 p 7 1 p 7 0 v d d o s c i o s c o 3 1 3 2 3 3 3 4 p 5 0 / a d 0 p 5 1 / a d 1 p 6 3 / a d 1 9 p 6 2 / a d 1 8 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 8 2 7 2 6 2 5 2 4 2 3 2 2 2 1 p 5 2 / a d 2 p 5 3 / a d 3 p 5 4 / a d 4 p 5 5 / a d 5 p 5 6 / a d 6 p 5 7 / a d 7 p 8 0 / a d 8 p 8 1 / a d 9 p 6 1 / a d 1 7 p 6 0 / a d 1 6 p 8 7 / a d 1 5 p 8 6 / a d 1 4 p 8 5 / a d 1 3 p 8 4 / a d 1 2 p 8 3 / a d 1 1 p 8 2 / a d 1 0 f i g . 3 - 1 e m 7 8 m 6 1 1 e x a p ( 4 0 - p i n d i p ) 12 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 4 0 4 1 4 2 4 4 4 3 p 9 1 p 9 2 / s e 1 / p w m 1 p 9 3 / s e 2 / p w m 2 p 9 4 / v p p p 9 5 p 9 6 v n n p 5 0 / a d 0 p 5 1 / a d 1 p 5 2 / a d 2 p 5 3 / a d 3 p 8 7 / a d 1 5 p 6 0 / a d 1 6 p 6 1 / a d 1 7 p 6 2 / a d 1 8 p 6 3 / a d 1 9 p 6 4 / a d 2 0 p 6 5 / a d 2 1 p 6 6 / a d 2 2 p 6 7 / a d 2 3 p 7 2 p 7 1 p 5 4 / a d 4 p 5 5 / a d 5 p 5 6 / a d 6 p 5 7 / a d 7 p 8 0 / a d 8 p 8 1 / a d 9 p 8 2 / a d 1 0 p 8 3 / a d 1 1 p 8 4 / a d 1 2 p 8 5 / a d 1 3 p 8 6 / a d 1 4 p 9 0 d - / d a t a / p 7 5 d + / c l k / p 7 4 v 3 . 3 v s s o s c o o s c i v d d p 7 6 p 7 7 p 7 0 f i g . 3 - 2 e m 7 8 m 6 1 1 e x a q ( 4 4 - p i n q f p )
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 1 ) 0 4 . 2 0 . 2 0 0 7 5 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) 12 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 p 5 6 / a d 6 p 5 7 / a d 7 p 6 0 / a d 1 6 p 6 1 / a d 1 7 p 6 2 / a d 1 8 p 7 7 p 7 6 v d d o s c i o s c o v s s v 3 . 3 d + / c l k / p 7 4 d - / d a t a / p 7 5 p 9 2 / s e 1 / p w m 1 p 9 3 / s e 2 / p w m 2 p 9 4 / v p p v n n p 5 4 / a d 4 p 5 5 / a d 5 f i g . 3 - 3 e m 7 8 m 6 1 1 e x b p / b m / d m ( 2 0 - p i n d i p / s o p / s s o p ) 12 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 9 2 0 2 1 2 2 2 3 2 4 o s c o v s s v 3 . 3 d + / c l k / p 7 4 d - / d a t a / p 7 5 p 9 2 / s e 1 / p w m 1 p 9 3 / s e 2 / p w m 2 p 9 4 / v p p v n n p 5 4 / a d 4 p 6 1 / a d 1 7 p 6 2 / a d 1 8 p 6 3 / a d 1 9 p 6 4 / a d 2 0 p 6 5 / a d 2 1 p 6 6 / a d 2 2 p 7 7 p 7 6 v d d o s c i 1 5 1 6 1 7 1 8 p 5 5 / a d 5 p 5 6 / a d 6 p 6 0 / a d 1 6 p 5 7 / a d 7 f i g . 3 - 4 e m 7 8 m 6 1 1 e x c p / c m / e m ( 2 4 - p i n d i p / s o p / s s o p )
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r 6 p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 ) 1 1 . 2 2 . 2 0 0 6 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) 6 p i n d e s c r i p t i o n s y m b o l i / o f u n c t i o n p 5 0 ~ p 5 7 i / o g e n e r a l 8 - b i t b i d i r e c t i o n a l i n p u t / o u t p u t p o r t . a l l p i n s o n t h i s p o r t c a n b e i n t e r n a l l y p u l l e d - h i g h b y s o f t w a r e c o n t r o l . p 6 0 ~ p 6 7 i / o g e n e r a l 8 - b i t b i d i r e c t i o n a l i n p u t / o u t p u t p o r t . a l l p i n s o n t h i s p o r t c a n b e i n t e r n a l l y p u l l e d - h i g h b y s o f t w a r e c o n t r o l . p 7 0 ~ p 7 2 p 7 6 ~ p 7 7 i / o l e d s i n k p i n s p 7 6 ~ p 7 7 w i l l h a v e a n i n t e r n a l l y p u l l e d - h i g h r e s i s t o r w h e n t h e e m 7 8 m 6 1 1 e i s r u n n i n g i n p s / 2 m o d e . p 8 0 ~ p 8 7 i / o g e n e r a l 8 - b i t b i d i r e c t i o n a l i n p u t / o u t p u t p o r t . a l l p i n s o n t h i s p o r t c a n b e i n t e r n a l l y p u l l e d - h i g h b y s o f t w a r e c o n t r o l . p 9 0 ~ p 9 3 p 9 5 ~ p 9 6 i / o g e n e r a l 6 - b i t b i d i r e c t i o n a l i n p u t / o u t p u t p o r t . a l l p i n s o n t h i s p o r t c a n b e i n t e r n a l l y p u l l e d - h i g h b y s o f t w a r e c o n t r o l o r l e d s i n k p i n s . p 9 4 / v p p i i n p u t o n l y . m t p p r o g r a m p i n . p w m 1 p w m 2 o p w m o u t p u t p i n s . d + / c l k / p 7 4 i / o u s b p l u s d a t a l i n e i n t e r f a c e o r c l k f o r p s / 2 k e y b o a r d . w h e n t h e e m 7 8 m 6 1 1 e i s r u n n i n g i n p s / 2 m o d e , t h i s p i n w i l l h a v e a n i n t e r n a l p u l l e d - h i g h r e s i s t o r ( 2 . 2 k w ) , w i t h v d d = 5 . 0 v . d - / d a t a / p 7 5 i / o u s b m i n u s d a t a l i n e i n t e r f a c e o r d a t a f o r p s / 2 k e y b o a r d . w h e n t h e e m 7 8 m 6 1 1 e i s r u n n i n g i n p s / 2 m o d e , t h i s p i n w i l l h a v e a n i n t e r n a l p u l l e d - h i g h r e s i s t o r ( 2 . 2 k w ) , w i t h v 3 . 3 = 3 . 3 v . w h e n t h e e m 7 8 m 6 1 1 e i s r u n n i n g i n u s b m o d e , t h i s p i n w i l l h a v e a n i n t e r n a l p u l l e d - h i g h r e s i s t o r ( 1 . 5 k w ) , w i t h v d d = 3 . 3 v . o s c i i 6 m h z / 1 2 m h z c e r a m i c r e s o n a t o r i n p u t . o s c o o r e t u r n p a t h f o r 6 m h z / 1 2 m h z c e r a m i c r e s o n a t o r . v n n - m t p p r o g r a m p i n . u s e d i n p r o g r a m m i n g t h e o n - c h i p r o m . d u r i n g n o r m a l o p e r a t i o n , t h i s p i n i s c o n n e c t e d t o g r o u n d . v 3 . 3 p w r 3 . 3 v r e g u l a t o r o u t p u t v d d p w r p o w e r s u p p l y p i n g n d p w r g r o u n d p i n
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 1 ) 0 4 . 2 0 . 2 0 0 7 7 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) 7 b l o c k d i a g r a m o s c i l l a t o r t i m i n g c o n t r o l b u i l t - i n r c p r e s c a l e r r 1 ( t c c ) w d t t i m e r d a t a & c o n t r o l b u s o s c i o s c o r 2 ( p c ) s t a c k 1 a l u a c c r 3 ( s t a t u s ) r o m i n s t r u c t i o n r e g i s t e r i n s t r u c t i o n d e c o d e r i n t e r r u p t c o n t r o l r e s e t , s l e e p & w a k e - u p c o n t r o l 3 . 3 v r e g u l a t o r u s b d e v i c e c o n t r o l l e r v d d v 3 . 3 t r a n s c e i v e r d + d - t c c w d t r a m r 4 ( r s r ) s t a c k 2 s t a c k 3 s t a c k 4 s t a c k 5 p r e s c a l e r i / o p o r t 8 p 8 0 p 8 1 p 8 2 p 8 3 p 8 4 p 8 5 p 8 6 p 8 7 i / o p o r t 9 p 9 0 p 9 1 p 9 2 p 9 4 p 9 5 p 9 6 i / o p o r t 7 p 7 4 / d + / c l k p 7 5 / d - / d a t a s t a c k 6 s t a c k 7 p 7 0 p 7 1 p 7 2 p 9 3 i / o p o r t 6 p 6 0 p 6 1 p 6 2 p 6 3 p 6 4 p 6 5 p 6 6 p 6 7 i / o p o r t 5 p 5 0 p 5 1 p 5 2 p 5 3 p 5 4 p 5 5 p 5 6 p 5 7 p 7 6 p 7 7 s t a c k 8 p 9 7
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r 8 p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 ) 1 1 . 2 2 . 2 0 0 6 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) 8 f u n c t i o n d e s c r i p t i o n t h e e m 7 8 m 6 1 1 e m e m o r y i s o r g a n i z e d i n t o t h r e e s p a c e s , n a m e l y ; u s e r p r o g r a m m e m o r y i n 6 k 1 3 b i t s r o m s p a c e , d a t a m e m o r y i n 1 4 4 b y t e s s r a m s p a c e , e e p r o m s p a c e a n d u s b a p p l i c a t i o n f i f o s f o r e n d p o i n t 0 , e n d p o i n t 1 , a n d e n d p o i n t 2 . f u r t h e r m o r e , s e v e r a l r e g i s t e r s a r e u s e d f o r s p e c i a l p u r p o s e s . 8 . 1 p r o g r a m m e m o r y t h e p r o g r a m s p a c e o f t h e e m 7 8 m 6 1 1 e i s 6 k w o r d s , a n d i s d i v i d e d i n t o s i x p a g e s . e a c h p a g e i s 1 k w o r d s l o n g . a f t e r a r e s e t , t h e 1 3 - b i t p r o g r a m c o u n t e r ( p c ) p o i n t s t o l o c a t i o n z e r o o f t h e p r o g r a m s p a c e . t h e i n t e r r u p t v e c t o r i s a t 0 x 0 0 0 1 a n d a c c o m m o d a t e s t c c i n t e r r u p t , r f 1 ( s e 1 ) t i m i n g c o u n t e r i n t e r r u p t , r f 2 ( s e 2 ) t i m i n g c o u n t e r i n t e r r u p t , p 7 4 ~ p 7 7 s t a t e c h a n g e d i n t e r r u p t , e n d p o i n t 0 i n t e r r u p t , u s b s u s p e n d i n t e r r u p t , u s b r e s e t i n t e r r u p t , a n d u s b h o s t r e s u m e i n t e r r u p t . a f t e r a n i n t e r r u p t , t h e m c u w i l l f e t c h t h e n e x t i n s t r u c t i o n f r o m t h e c o r r e s p o n d i n g a d d r e s s a s i l l u s t r a t e d i n t h e f o l l o w i n g d i a g r a m . p c r e s e t v e c t o r i n t e r r u p t v e c t o r p a g e 0 p a g e 1 p a g e 2 p a g e 3 p a g e 4 p a g e 5 0 x 0 0 0 0 0 x 0 0 0 1 0 x 0 3 f f 0 x 0 4 0 0 0 x 0 7 f f 0 x 0 8 0 0 0 x 0 b f f 0 x 0 c 0 0 0 x 0 f f f 0 x 1 0 0 0 0 x 1 3 f f 0 x 1 4 0 0 0 x 1 7 f f a d d r e s s a f t e r r e s e t
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 1 ) 0 4 . 2 0 . 2 0 0 7 9 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) 8 . 2 d a t a m e m o r y t h e d a t a m e m o r y h a s 1 4 4 b y t e s s r a m s p a c e . i t h a s a l s o a n o n - c h i p u s b a p p l i c a t i o n f i f o s p a c e f o r u s b a p p l i c a t i o n . f i g u r e 8 - 1 ( n e x t p a g e ) s h o w s t h e o r g a n i z a t i o n o f t h e d a t a m e m o r y s p a c e . 8 . 2 . 1 s p e c i a l p u r p o s e r e g i s t e r w h e n t h e m i c r o c o n t r o l l e r e x e c u t e s i n s t r u c t i o n s , s p e c i f i c r e g i s t e r s a r e i m p l e m e n t e d t o e n s u r e p r o p e r o p e r a t i o n o f e s s e n t i a l f u n c t i o n s s u c h a s s t a t u s r e g i s t e r w h i c h r e c o r d s t h e c a l c u l a t i o n s t a t u s , p o r t i / o c o n t r o l r e g i s t e r s w h i c h c o n t r o l t h e i / o p i n s d i r e c t i o n , e t c . l o t s o f o t h e r s p e c i a l p u r p o s e r e g i s t e r s a r e p r o v i d e d f o r v a r i o u s f u n c t i o n s . n o t e t h a t s p e c i a l c o n t r o l r e g i s t e r s c a n o n l y b e r e a d o r w r i t t e n t o b y t w o i n s t r u c t i o n s : i o r a n d i o w .       
                  ! "#           $%   
 $% 
   $%     $%  &   $%    ' ((     ))    * +,    ' - /.0)  1 - /.0    / -    - .* - .* - .* - .0  3234  '5 637635 #  - .** - .**
- .* - .*0 - .* 1 6 x 8 c o m m o n r e g i s t e r 8 9 :4  63;< #  6%=  :4   >   / >    !  (:?$< : 3??&% 6# # (:?@$< : !  >  (a/#  ! "/# ( a#   "#   > ! - .0 - .0*   ' )) =b )0a  635     )0ac1=   * )0ade=   1  fgdha=i'(   ' )  ! 63 8 9 :4  63;< #  6%=  :4! 8 , :4  6&;< #  6%=  :4 8 9 :4  63;< #  6%= = 3:4    
f i g . 8 - 1 d a t a r a m o r g a n i z a t i o n o f e m 7 8 m 6 1 1 e
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r 1 0 p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 ) 1 1 . 2 2 . 2 0 0 6 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) 8 . 2 . 2 o p e r a t i o n r e g i s t e r s t h e f o l l o w i n g s u b s e c t i o n s d e s c r i b e e a c h o f t h e o p e r a t i o n r e g i s t e r s o f t h e s p e c i a l p u r p o s e r e g i s t e r s . t h e o p e r a t i o n r e g i s t e r s a r e a r r a n g e d a c c o r d i n g t o t h e o r d e r o f t h e r e g i s t e r s a d d r e s s . n o t e t h a t s o m e r e g i s t e r s a r e r e a d o n l y , w h i l e o t h e r s a r e b o t h r e a d a b l e a n d w r i t a b l e . 8 . 2 . 2 . 1 r 0 ( i n d i r e c t a d d r e s s i n g r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ 0 0 0 0 _ 0 0 0 0 ) r 0 i s n o t a p h y s i c a l l y i m p l e m e n t e d r e g i s t e r . i t s m a j o r f u n c t i o n i s a s a n i n d i r e c t a d d r e s s i n g p o i n t e r . a n y i n s t r u c t i o n u s i n g r 0 a s a p o i n t e r a c t u a l l y a c c e s s e s d a t a p o i n t e d b y t h e r a m s e l e c t r e g i s t e r ( r 4 ) . 8 . 2 . 2 . 2 r 1 ( t i m e r / c l o c k c o u n t e r ) d e f a u l t v a l u e : ( 0 b _ 0 0 0 0 _ 0 0 0 0 ) t h e t c c r e g i s t e r i s a n 8 - b i t t i m e r o r c o u n t e r . i t i s r e a d a b l e a n d w r i t a b l e a s a n y o t h e r r e g i s t e r . t h e t i m e r m o d u l e w i l l b e i n c r e m e n t e d a f t e r e x e c u t i o n o f e v e r y i n s t r u c t i o n c y c l e s . u s e r c a n w o r k a r o u n d t h i s b y w r i t i n g a n a d j u s t e d v a l u e . t h e t i m e r i n t e r r u p t i s g e n e r a t e d w h e n t h e r 1 r e g i s t e r o v e r f l o w s f r o m f f h t o 0 0 h . t h i s o v e r f l o w s e t s b i t t c i f ( r f [ 0 ] ) . t h e i n t e r r u p t c a n b e m a s k e d b y c l e a r i n g b i t t c i e ( i o c f [ 0 ] ) . a f t e r p o w e r - o n r e s e t a n d w a t c h d o g r e s e t , t h e i n i t i a l v a l u e o f t h i s r e g i s t e r i s 0 x 0 0 . 8 . 2 . 2 . 3 r 2 ( p r o g r a m c o u n t e r & s t a c k ) d e f a u l t v a l u e : ( 0 b _ 0 0 0 0 _ 0 0 0 0 ) t h e e m 7 8 m 6 1 1 e p r o g r a m c o u n t e r i s a 1 3 - b i t r e g i s t e r t h a t a l l o w s a c c e s s i n g o f t h e 6 k w o r d s o f t h e p r o g r a m m e m o r y w i t h 8 l e v e l s t a c k s . t h e e i g h t l s b b i t s , a 0 ~ a 7 , a r e l o c a t e d a t r 2 , w h i l e t h e t h r e e m s b b i t s , a 1 2 ~ a 1 0 , a r e l o c a t e d a t r 3 . t h e p r o g r a m c o u n t e r i s c l e a r e d a f t e r p o w e r - o n r e s e t o r w a t c h d o g r e s e t . t h e f i r s t i n s t r u c t i o n t h a t i s e x e c u t e d a f t e r a r e s e t i s l o c a t e d a t a d d r e s s 0 0 h .
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 1 ) 0 4 . 2 0 . 2 0 0 7 1 1 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) a 1 2 a 1 1 a 1 0 a 9 a 8 a 7 ~ a 0 0 0 0 0 p a g e 0 0 3 f f 0 4 0 0 p a g e 1 0 7 f f 0 8 0 0 p a g e 2 0 b f f 1 0 0 0 p a g e 0 1 3 f f 1 4 0 0 p a g e 0 1 7 f f s t a c k 1 s t a c k 2 s t a c k 3 s t a c k 4 s t a c k 5 s t a c k 6 s t a c k 7 s t a c k 8 c a l l i n t e r r u p t r e t r e t l r e t i 0 0 0 0 : r e s e t v e c t o r 0 0 0 1 : i n t e r r u p t v e c t o r 8 . 2 . 2 . 4 r 3 ( s t a t u s r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ 0 0 0 1 _ 1 x x x ) b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 p s 2 p s 1 p s 0 t p z d c c r 3 [ 0 ] c a r r y / b o r r o w f l a g 0 = n o c a r r y - o u t f r o m t h e r e s u l t s m o s t s i g n i f i c a n t b i t 1 = a c a r r y - o u t f r o m t h e r e s u l t s m o s t s i g n i f i c a n t b i t o c c u r r e d n o t e f o r b o r r o w , t h e p o l a r i t y i s r e v e r s e d . f o r r o t a t e ( r r c , r l c ) i n s t r u c t i o n s , t h i s b i t i s l o a d e d w i t h e i t h e r h i g h o r l o w - o r d e r b i t o f t h e s o u r c e r e g i s t e r . r 3 [ 1 ] a u x i l i a r y c a r r y / b o r r o w f l a g . f o r a d d , s u b i n s t r u c t i o n s 0 = n o c a r r y - o u t f r o m t h e 4 t h l o w - o r d e r b i t o f t h e r e s u l t 1 = a c a r r y - o u t f r o m t h e 4 t h l o w - o r d e r b i t o f t h e r e s u l t o c c u r r e d n o t e f o r b o r r o w , t h e p o l a r i t y i s r e v e r s e d .
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r 1 2 p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 ) 1 1 . 2 2 . 2 0 0 6 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) r 3 [ 2 ] z e r o f l a g . i t w i l l b e s e t t o 1 w h e n t h e r e s u l t o f a n a r i t h m e t i c o r l o g i c o p e r a t i o n i s z e r o . r 3 [ 3 ] p o w e r d o w n f l a g . i t w i l l b e s e t t o 1 d u r i n g p o w e r - o n p h a s e o r b y w d t c c o m m a n d a n d c l e a r e d w h e n t h e m c u e n t e r s i n t o p o w e r d o w n m o d e . i t r e m a i n s i n i t s p r e v i o u s s t a t e a f t e r a w a t c h d o g r e s e t . 0 : p o w e r d o w n 1 : p o w e r - o n r 3 [ 4 ] t i m e - o u t f l a g . i t w i l l b e s e t t o 1 d u r i n g p o w e r - o n p h a s e o r b y w d t c c o m m a n d . i t i s r e s e t t o 0 b y w d t t i m e - o u t . 0 : w a t c h d o g t i m e r o v e r f l o w o c c u r s 1 : n o w a t c h d o g t i m e r o v e r f l o w t h e v a r i o u s s t a t e s o f p o w e r d o w n f l a g a n d t i m e - o u t f l a g a t d i f f e r e n t c o n d i t i o n s a r e s h o w n b e l o w : t p c o n d i t i o n 1 1 0 1 1 1 1 * p 0 0 p o w e r - o n r e s e t w d t c i n s t r u c t i o n w d t t i m e - o u t p o w e r d o w n m o d e w a k e u p c a u s e d b y p o r t c h a n g e d u r i n g p o w e r d o w n m o d e * p : p r e v i o u s s t a t u s b e f o r e w d t r e s e t r 3 [ 5 - 7 ] p a g e s e l e c t i o n b i t s . t h e s e t h r e e b i t s a r e u s e d t o s e l e c t t h e p r o g r a m m e m o r y p a g e . p s 2 p s 1 p s 0 p r o g r a m m e m o r y p a g e [ a d d r e s s ] 0 0 0 p a g e 0 [ 0 0 0 0 - 0 3 f f ] 0 0 1 p a g e 1 [ 0 4 0 0 - 0 7 f f ] 0 1 0 p a g e 2 [ 0 8 0 0 - 0 b f f ] 0 1 1 p a g e 3 [ 0 c 0 0 - 0 f f f ] 1 0 0 p a g e 4 [ 1 0 0 0 - 1 3 f f ] 1 0 1 p a g e 5 [ 1 4 0 0 - 1 7 f f ]
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 1 ) 0 4 . 2 0 . 2 0 0 7 1 3 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) 8 . 2 . 2 . 5 r 4 ( r a m s e l e c t r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ 0 0 x x _ x x x x ) b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 b k 1 b k 0 a d 5 a d 4 a d 3 a d 2 a d 1 a d 0 r 4 ( r a m s e l e c t r e g i s t e r ) c o n t a i n s t h e a d d r e s s o f t h e r e g i s t e r s . r 4 [ 0 ~ 5 ] u s e d t o s e l e c t r e g i s t e r s i n 0 x 0 0 h ~ 0 x 3 f h . t h e a d d r e s s 0 x 0 0 ~ 0 x 1 f i s c o m m o n s p a c e . a f t e r 0 x 1 f h , s r a m i s d i v i d e d i n t o f o u r b a n k s , u s i n g b a n k s e l e c t r e g i s t e r . r 4 [ 6 , 7 ] u s e d t o s e l e c t t h e r e g i s t e r s b a n k ( r e f e r t o t h e t a b l e b e l o w ) . t h e f o l l o w i n g a r e t w o e x a m p l e s : ( 1 ) r 4 = 0 0 0 0 1 1 0 0 a n d r 4 = 1 0 0 0 1 1 0 0 p o i n t t o t h e s a m e r e g i s t e r 0 x 0 c h . s i n c e 0 x 0 c h i s i n t h e c o m m o n s p a c e , b i t 6 a n d b i t 7 a r e m e a n i n g l e s s . ( 2 ) r 4 = 1 0 1 1 1 1 0 0 p o i n t s t o t h e r e g i s t e r 0 x 3 c i n b a n k 2 . r 4 [ 7 ] b k 1 r 4 [ 6 ] b k 0 r a m b a n k # 0 0 1 1 0 1 0 1 b a n k 0 b a n k 1 b a n k 2 b a n k 3 8 . 2 . 2 . 6 r 5 ( p o r t 5 i / o r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ 0 0 0 0 _ 0 0 0 0 ) b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 p 5 7 p 5 6 p 5 5 p 5 4 p 5 3 p 5 2 p 5 1 p 5 0 8 . 2 . 2 . 7 r 6 ( p o r t 6 i / o r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ 0 0 0 0 _ 0 0 0 0 ) b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 p 6 7 p 6 6 p 6 5 p 6 4 p 6 3 p 6 2 p 6 1 p 6 0 8 . 2 . 2 . 8 r 7 ( p o r t 7 i / o r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ 0 0 0 0 _ x 0 0 0 ) b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 p 7 7 p 7 6 d - / p 7 5 / d a t a d + / p 7 4 / c l k - p 7 2 p 7 1 p 7 0 8 . 2 . 2 . 9 r 8 ( p o r t 8 i / o r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ 0 0 0 0 _ 0 0 0 0 ) b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 p 8 7 p 8 6 p 8 5 p 8 4 p 8 3 p 8 2 p 8 1 p 8 0 8 . 2 . 2 . 1 0 r 9 ( p o r t 9 i / o r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ x 0 0 x _ 0 0 0 0 ) b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 - p 9 6 p 9 5 - p 9 3 p 9 2 p 9 1 p 9 0
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r 1 4 p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 ) 1 1 . 2 2 . 2 0 0 6 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) 8 . 2 . 2 . 1 1 r a ( e e p r o m c o n t r o l r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ 1 1 1 1 _ 1 1 1 1 ) r a i s a c o m m a n d r e g i s t e r f o r e e p r o m c o n t r o l . f o r d e t a i l e d u s a g e o f t h i s r e g i s t e r , r e f e r t o s e c t i o n 8 . 2 . 3 w h i c h d e s c r i b e s t h e e e p r o m e m b e d d e d i n t h e e m 7 8 m 6 1 1 e . 8 . 2 . 2 . 1 2 r b ( p a t t e r n d e t e c t a p p l i c a t i o n c o n t r o l r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ 0 0 0 0 _ 0 0 0 0 ) r b i s a c o n t r o l r e g i s t e r f o r c o n t r o l l i n g t h e p a t t e r n d e t e c t a p p l i c a t i o n f u n c t i o n . f o r d e t a i l e d d e s c r i p t i o n o f t h i s r e g i s t e r , r e f e r t o s e c t i o n 8 . 7 . 2 w h i c h d e s c r i b e s t h e p d a f u n c t i o n . 8 . 2 . 2 . 1 3 r c ( u s b a p p l i c a t i o n s t a t u s r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ 0 0 0 0 _ 0 0 0 0 ) b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 e p 0 _ w e p 0 _ r e p 1 _ r e p 2 _ r e p 2 _ w h o s t _ s u s p e n d e p 0 _ b u s y s t a l l r c [ 0 ] s t a l l f l a g . w h i l e t h e m c u r e c e i v e s a n u n s u p p o r t e d c o m m a n d o r i n v a l i d p a r a m e t e r s f r o m h o s t , t h i s b i t w i l l b e s e t t o 1 b y t h e f i r m w a r e t o n o t i f y t h e u d c t o r e t u r n a s t a l l h a n d s h a k e . w h e n a s u c c e s s f u l s e t u p t r a n s a c t i o n i s r e c e i v e d , t h i s b i t i s c l e a r e d a u t o m a t i c a l l y . t h i s b i t i s r e a d a b l e a n d w r i t a b l e . r c [ 1 ] e p 0 _ b u s y f l a g . w h e n t h i s b i t i s e q u a l t o 1 , i t i n d i c a t e s t h a t t h e u d c i s w r i t i n g d a t a i n t o t h e e p 0 f i f o o r r e a d i n g d a t a f r o m i t . d u r i n g t h i s t i m e , t h e f i r m w a r e w i l l a v o i d a c c e s s i n g t h e f i f o u n t i l u d c f i n i s h e s w r i t i n g o r r e a d i n g . t h i s b i t i s o n l y r e a d a b l e . r c [ 2 ] h o s t s u s p e n d f l a g . i f t h i s b i t i s e q u a l t o 1 , i t i n d i c a t e s t h a t u s b b u s h a s n o t r a f f i c f o r a s p e c i f i e d p e r i o d o f 3 . 0 m s . t h i s b i t w i l l a l s o b e c l e a r e d a u t o m a t i c a l l y w h e n t h e r e i s b u s a c t i v i t y . t h i s b i t i s o n l y r e a d a b l e . r c [ 3 ] e p 2 _ w f l a g . t h i s b i t i s s e t w h e n t h e u d c r e c e i v e s a s u c c e s s f u l d a t a f r o m u s b h o s t t o e p 2 . u p o n d e t e c t i n g t h a t t h i s b i t i s e q u a l t o o n e , t h e f i r m w a r e w i l l e x e c u t e a r e a d s e q u e n c e t o t h e e p 2 s f i f o , a f t e r w h i c h t h i s b i t i s c l e a r e d . o t h e r w i s e , t h e s u b s e q u e n t d a t a f r o m u s b h o s t w o n t b e a c c e p t e d b y t h e u d c . r c [ 4 , 5 , 6 ] e p 0 _ r / e p 1 _ r / e p 2 _ r f l a g . t h e s e t h r e e b i t s i n f o r m t h e u d c t o r e a d t h e d a t a f r o m t h e f i f o . t h e n t h e u d c w i l l s e n d t h e d a t a t o t h e h o s t a u t o m a t i c a l l y . a f t e r u d c f i n i s h e s r e a d i n g t h e d a t a f r o m t h e f i f o , t h i s b i t w i l l b e c l e a r e d a u t o m a t i c a l l y . t h e r e f o r e , b e f o r e w r i t i n g d a t a i n t o f i f o s , t h e f i r m w a r e w i l l f i r s t c h e c k t h i s b i t t o a v o i d o v e r w r i t i n g t h e d a t a . t h e s e t h r e e b i t s c a n o n l y b e s e t b y f i r m w a r e a n d c l e a r e d b y h a r d w a r e . r c [ 7 ] e p 0 _ w f l a g . a f t e r t h e u d c c o m p l e t e s w r i t i n g d a t a t o t h e f i f o , t h i s b i t w i l l b e s e t a u t o m a t i c a l l y . t h e f i r m w a r e w i l l c l e a r i t a s s o o n a s i t g e t s t h e d a t a f r o m e p 0 s f i f o . o n l y w h e n t h i s b i t i s c l e a r e d t h a t t h e u d c w i l l b e a b l e t o w r i t e a n e w d a t a i n t o t h e f i f o . t h e r e f o r e , b e f o r e t h e f i r m w a r e c a n w r i t e d a t a i n t o t h e f i f o , t h i s b i t m u s t f i r s t b e s e t b y t h e f i r m w a r e t o p r e v e n t t h e u d c f r o m w r i t i n g d a t a a t t h e s a m e t i m e . t h i s b i t i s b o t h r e a d a b l e a n d w r i t a b l e .
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 1 ) 0 4 . 2 0 . 2 0 0 7 1 5 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) 8 . 2 . 2 . 1 2 r d ( u s b a p p l i c a t i o n f i f o a d d r e s s r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ 0 0 0 0 _ 0 0 0 0 ) b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 0 0 0 u a d 4 u a d 3 u a d 2 u a d 1 u a d 0 r d [ 0 ~ 4 ] u s b a p p l i c a t i o n f i f o a d d r e s s r e g i s t e r s . t h e s e f i v e b i t s a r e t h e a d d r e s s p o i n t e r s o f u s b a p p l i c a t i o n f i f o . r d [ 5 ~ 7 ] u n d e f i n e d r e g i s t e r s . t h e d e f a u l t v a l u e i s z e r o . 8 . 2 . 2 . 1 3 r e ( u s b a p p l i c a t i o n f i f o d a t a r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ 0 0 0 0 _ 0 0 0 0 ) b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 u d 7 u d 6 u d 5 u d 4 u d 3 u d 2 u d 1 u d 0 r e ( u s b a p p l i c a t i o n f i f o d a t a r e g i s t e r ) c o n t a i n s t h e d a t a i n t h e r e g i s t e r o f w h i c h a d d r e s s i s p o i n t e d b y r d . n o t e f o r e x a m p l e , i f u s e r w a n t s t o r e a d t h e f o u r t h b y t e o f e n d p o i n t z e r o , u s e r h a s t o u s e t h e a d d r e s s o f e p 0 ( 0 x 0 0 ) a n d d a t a b y t e p o i n t e r o f e p 0 ( 0 x 1 0 ) t o a c c e s s i t . / / r e a d t h e 4 t h b y t e o f t h e e p 0 f i f o / / f i r s t , a s s i g n t h e d a t a b y t e p o i n t e r o f e p 0 r e g i s t e r ( 0 x 1 0 ) w i t h 0 x 0 3 . m o v a , @ 0 x 1 0 m o v r d , a / / m o v e d a t a i n a t o r d r e g i s t e r m o v a , @ 0 x 0 3 m o v r e , a / / m o v e d a t a i n a t o r e r e g i s t e r / / t h e n r e a d t h e c o n t e n t f r o m e p 0 f i f o ( 0 x 0 0 ) 4 t h b y t e m o v a , @ 0 x 0 0 m o v r d , a / / a s s i g n a d d r e s s p o i n t t o e p 0 f i f o m o v a , r e / / r e a d t h e f o u r t h b y t e d a t a ( b y t e 3 ) o f t h e e p 0 f i f o m o v a , 0 x 0 e / / r e a d t h e f i f t h b y t e d a t a ( b y t e 4 ) o f t h e e p 0 f i f o 8 . 2 . 2 . 1 4 r f ( i n t e r r u p t s t a t u s r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ 0 0 0 0 _ 0 0 0 0 ) b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 u s b h o s t r e s u m e _ i f s e 2 _ i f s e 1 _ i f p o r t 7 s t a t e c h a n g e _ 1 f u s b r e s e t _ i f u s b s u s p e n d _ i f e p 0 _ i f t c c _ i f r f [ 0 ] t c c o v e r f l o w i n t e r r u p t f l a g . i t w i l l b e s e t w h i l e t c c o v e r f l o w s , a n d i s c l e a r e d b y f i r m w a r e . r f [ 1 ] e n d p o i n t z e r o i n t e r r u p t f l a g . i t w i l l b e s e t w h e n t h e e m 7 8 m 6 1 1 e r e c e i v e s v e n d o r / c u s t o m e r c o m m a n d t o e n d p o i n t z e r o . t h i s b i t i s c l e a r e d b y f i r m w a r e .
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r 1 6 p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 ) 1 1 . 2 2 . 2 0 0 6 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) r f [ 2 ] u s b s u s p e n d i n t e r r u p t f l a g . i t w i l l b e s e t w h e n t h e e m 7 8 m 6 1 1 e f i n d s t h e u s b s u s p e n d s i g n a l o n u s b b u s . t h i s b i t i s c l e a r e d b y t h e f i r m w a r e . r f [ 3 ] u s b r e s e t i n t e r r u p t f l a g . i t w i l l b e s e t w h e n t h e h o s t i s s u e s t h e u s b r e s e t s i g n a l . r f [ 4 ] p 7 4 / p 7 5 / p 7 6 / p 7 7 p o r t s t a t e c h a n g e i n t e r r u p t f l a g . i n p s 2 m o d e , o n l y p i n s c o n f i g u r e d a s i n p u t s c a n c a u s e t h i s i n t e r r u p t t o o c c u r . t h e s e p i n s ( p 7 4 , p 7 5 , p 7 6 a n d p 7 7 ) a r e c o m p a r e d w i t h t h e v a l u e l a t c h e d o n t h e l a s t r e a d o f p o r t 7 . i n u s b m o d e , p 7 6 a n d p 7 7 h a v e t h i s f u n c t i o n . n o t e r f [ 4 ] : p o r t s t a t e c h a n g e i n t e r r u p t f l a g , e m 7 8 m 6 1 1 u s b m o d e C p 7 6 a n d p 7 7 d o n o t h a v e i n t e r r u p t f u n c t i o n . p s 2 m o d e C p 7 4 / p 7 5 / p 7 6 / p 7 7 h a v e i n t e r r u p t f u n c t i o n . e m 7 8 m 6 1 1 e p 7 4 / p 7 5 / p 7 6 / p 7 7 a l l h a v e i n t e r r u p t f u n c t i o n ( i n u s b & p s 2 m o d e ) r f [ 5 , 6 ] s e 1 / s e 2 p a t t e r n d e t e c t i n t e r r u p t f l a g . t h e s e t w o f l a g s a r e u s e d f o r p a t t e r n d e t e c t a p p l i c a t i o n . r f [ 7 ] u s b h o s t r e s u m e i n t e r r u p t f l a g . i t w i l l b e s e t o n l y i n d u a l c l o c k m o d e w h e n t h e u s b s u s p e n d s i g n a l b e c o m e s l o w . n o t e r f [ 7 ] : u s b h o s t r e s u m e _ i f i n e m 7 8 m 6 1 1 , t h i s b i t i s a l w a y s 1 . i t i s n o t f o r u s e . i n e m 7 8 m 6 1 1 e , t h i s b i t i s o . k . f o r u s e . 8 . 2 . 3 c o n t r o l r e g i s t e r s s o m e s p e c i a l p u r p o s e r e g i s t e r s a r e a v a i l a b l e f o r s p e c i a l c o n t r o l p u r p o s e s . e x c e p t f o r t h e a c c u m u l a t o r ( a c c ) , t h e s e r e g i s t e r s m u s t b e r e a d a n d w r i t t e n w i t h s p e c i a l i n s t r u c t i o n s . o n e o f t h e s e r e g i s t e r s , c o n t , c a n o n l y b e r e a d b y t h e i n s t r u c t i o n " c o n t r " a n d w r i t t e n b y " c o n t w " i n s t r u c t i o n . t h e o t h e r s p e c i a l c o n t r o l r e g i s t e r s c a n b e r e a d b y t h e i n s t r u c t i o n " i o r " a n d w r i t t e n b y t h e i n s t r u c t i o n " i o w " . t h e f o l l o w i n g p a r a g r a p h s d e s c r i b e o n l y t h e g e n e r a l f u n c t i o n s o f t h e c o n t r o l r e g i s t e r s . 8 . 2 . 3 . 1 a ( a c c u m u l a t o r ) t h e a c c u m u l a t o r i s a n 8 - b i t r e g i s t e r t h a t h o l d s o p e r a n d s a n d r e s u l t s o f a r i t h m e t i c c a l c u l a t i o n s . i t i s n o t a d d r e s s a b l e . a f t e r a n i n t e r r u p t o c c u r s , t h e a c c u m u l a t o r i s a u t o - s a v e d b y h a r d w a r e .
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 1 ) 0 4 . 2 0 . 2 0 0 7 1 7 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) 8 . 2 . 3 . 2 c o n t ( c o n t r o l r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ 0 0 1 1 _ 1 1 1 1 ) b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 l e d i n t t s r 2 t s r 1 t s r 0 p s r 2 p s r 1 p s r 0 e x c e p t f o r b i t 6 ( i n t e r r u p t e n a b l e c o n t r o l b i t ) , t h e c o n t r e g i s t e r c a n b e r e a d b y t h e i n s t r u c t i o n " c o n t r " a n d w r i t t e n b y t h e i n s t r u c t i o n c o n t w " . c o n t [ 0 ~ 2 ] w a t c h d o g t i m e r p r e s c a l e r b i t s . t h e s e t h r e e b i t s a r e u s e d a s t h e w a t c h d o g t i m e r p r e s c a l e r . c o n t [ 3 ~ 5 ] t c c t i m e r p r e s c a l e r b i t s . t h e r e l a t i o n s h i p b e t w e e n t h e p r e s c a l e r v a l u e a n d t h e s e b i t s a r e s h o w n b e l o w : p s r 2 / t s r 2 p s r 1 / t s r 1 p s r 0 / t s r 0 t c c r a t e w d t r a t e 0 0 0 1 : 2 1 : 1 0 0 1 1 : 4 1 : 2 0 1 0 1 : 8 1 : 4 0 1 1 1 : 1 6 1 : 8 1 0 0 1 : 3 2 1 : 1 6 1 0 1 1 : 6 4 1 : 3 2 1 1 0 1 : 1 2 8 1 : 6 4 1 1 1 1 : 2 5 6 1 : 1 2 8 n o t e w d t t i m i n g b a s e i s p o w e r - o n t i m e . s e t b y t h e c o d e o p t i o n [ 2 , 1 . ] e x . c o d e o p t i o n [ 2 , 1 ] = 0 1 ( 2 m s ) , a n d p r e s c a l e r = 1 : 1 2 8 . w d t o v e r f l o w t i m e i s : 2 m s * 2 ^ 7 = 2 5 6 m s c o n t [ 6 ] i n t e r r u p t e n a b l e c o n t r o l b i t . t h i s b i t t o g g l e s i n t e r r u p t f u n c t i o n b e t w e e n e n a b l e a n d d i s a b l e . i t i s s e t t o 1 b y t h e i n t e r r u p t d i s a b l e i n s t r u c t i o n " d i s i " a n d r e s e t b y t h e i n t e r r u p t e n a b l e i n s t r u c t i o n s " e n i " o r " r e t i . " 0 : d i s a b l e t h e i n t e r r u p t f u n c t i o n 1 : e n a b l e t h e i n t e r r u p t f u n c t i o n c o n t [ 7 ] l e d b i t . t h i s b i t i s u s e d t o e n a b l e t h e l e d s i n k c a p a c i t y o f p 7 6 a n d p 7 7 . 0 : d i s a b l e t h e l e d s i n k c a p a c i t y o f p 7 6 , p 7 7 1 : e n a b l e t h e l e d s i n k c a p a c i t y o f p 7 6 , p 7 7
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r 1 8 p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 ) 1 1 . 2 2 . 2 0 0 6 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) 8 . 2 . 3 . 3 i o c 5 ~ i o c 9 i / o ( p o r t d i r e c t i o n c o n t r o l r e g i s t e r s ) d e f a u l t v a l u e : ( 0 b _ 1 1 1 1 _ 1 1 1 1 ) t h e s e a r e i / o p o r t ( p o r t 5 ~ p o r t 7 ) d i r e c t i o n c o n t r o l r e g i s t e r s . e a c h b i t c o n t r o l s t h e i / o d i r e c t i o n o f t h r e e i / o p o r t s r e s p e c t i v e l y . w h e n t h e s e b i t s a r e s e t t o 1 , t h e r e l a t i v e i / o p i n s b e c o m e i n p u t p i n s . s i m i l a r l y , t h e i / o p i n s b e c o m e s o u t p u t s w h e n t h e r e l a t i v e c o n t r o l b i t s a r e c l e a r e d . 0 : o u t p u t d i r e c t i o n 1 : i n p u t d i r e c t i o n 8 . 2 . 3 . 4 i o c a ( o p e r a t i o n m o d e c o n t r o l r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ 1 1 1 0 _ 0 0 0 0 ) b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 d u a l _ f r q . 1 d u a l _ f r q . 0 - r e m o t e _ w a k e u p e x r e g _ s e l p d a p s / 2 u s b i o c a [ 0 , 1 ] t h e s e t w o b i t s a r e u s e d t o s e l e c t t h e o p e r a t i o n m o d e . i o c a [ 1 ] i o c a [ 0 ] o p e r a t i o n m o d e 0 0 d e t e c t m o d e 0 1 u s b m o d e 1 0 p s / 2 m o d e 1 1 u s b t e s t m o d e i o c a [ 2 ] p a t t e r n d e t e c t a p p l i c a t i o n f u n c t i o n e n a b l e b i t . t h i s b i t i s u s e d t o e n a b l e t h e p a t t e r n d e t e c t a p p l i c a t i o n ( p d a ) f u n c t i o n . f o r d e t a i l s a b o u t t h i s f u n c t i o n r e f e r t o s e c t i o n 8 . 1 1 . 0 : d i s a b l e p d a f u n c t i o n 1 : e n a b l e p d a f u n c t i o n i o c a [ 3 ] e x t r a c o n t r o l r e g i s t e r s e l e c t b i t . t h e f i v e e x t r a c o n t r o l r e g i s t e r s ( r e a , r e b , r e c , r e d , a n d r e e ) a r e l o c a t e d i n 0 x a ~ 0 x e . t o a c c e s s t h e s e f i v e r e g i s t e r s , s e t t h e b i t a s f o l l o w s : 0 : s e l e c t r a ~ r e 1 : s e l e c t e x t r a c o n t r o l r e g i s t e r e r a ~ e r e i o c a [ 4 ] i n d i c a t e w h e t h e r t h e d e v i c e i s c u r r e n t l y r e q u e s t e d t o s u p p o r t r e m o t e w a k e u p o r n o t . t h e r e m o t e w a k e - u p f i e l d c a n b e m o d i f i e d b y s e t f e a t u r e ( ) a n d c l e a r f e a t u r e ( ) r e q u e s t s . 0 : d o n o t s u p p o r t r e m o t e w a k e u p 1 : s u p p o r t s r e m o t e w a k e u p n o t e i o c a [ 4 ] : r e m o t e _ w a k e u p b i t e m 7 8 m 6 1 1 d o n o t s u p p o r t t h i s f u n c t i o n . o n l y e m 7 8 m 6 1 1 e d o e s .
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 1 ) 0 4 . 2 0 . 2 0 0 7 1 9 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) i o c a [ 6 , 7 ] s e l e c t t h e o p e r a t i o n f r e q u e n c y i n d u a l c l o c k m o d e . f o u r f r e q u e n c i e s a r e a v a i l a b l e a n d c a n b e c h o s e n a s d u a l c l o c k m o d e i n r u n n i n g t h e m c u p r o g r a m . d u a l _ f r q . 1 d u a l _ f r q . 0 f r e q u e n c y 0 0 5 0 0 h z 0 1 4 k h z 1 0 3 2 k h z 1 1 2 5 6 k h z 8 . 2 . 3 . 5 i o c b ( p o r t 9 w a k e - u p p i n s e l e c t r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ x 1 1 1 _ 1 1 1 1 ) b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 - / p 9 6 / p 9 5 / p 9 4 / p 9 3 / p 9 2 / p 9 1 / p 9 0 i o c b [ 0 ~ 6 ] t h e s e b i t s a r e u s e d t o s e l e c t w h i c h o f t h e p o r t 9 p i n s i s t o b e a s s i g n e d t o w a k e u p t h e m c u w h i l e i n p o w e r d o w n m o d e . 0 : e n a b l e t h e f u n c t i o n 1 : d i s a b l e t h e f u n c t i o n i o c b [ 7 ] r e s e r v e d b i t 8 . 2 . 3 . 6 i o c c ( p o r t 9 l e d s i n k c a p a c i t y c o n t r o l r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ x 0 0 x _ 0 0 0 0 ) b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 - p 9 6 p 9 5 - p 9 3 p 9 2 p 9 1 p 9 0 i o c c [ 0 ~ 3 , 5 , 6 ] l e d s i n k c o n t r o l b i t . t h e s e b i t s a r e u s e d t o e n a b l e t h e l e d s i n k c a p a c i t y o f p 9 0 ~ p 9 7 0 : d i s a b l e t h e l e d s i n k c a p a c i t y o f r e s p e c t i v e p i n 1 : e n a b l e t h e l e d s i n k c a p a c i t y o f r e s p e c t i v e p i n i o c c [ 4 , 7 ] r e s e r v e d b i t s 8 . 2 . 3 . 7 i o c d ( p o r t 9 p u l l h i g h c o n t r o l r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ x 1 1 x _ 1 1 1 1 ) b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 - / p h 9 6 / p h 9 5 - / p h 9 3 / p h 9 2 / p h 9 1 / p h 9 0 i o c d [ 0 ~ 3 , 5 , 6 ] t h e s e b i t s c o n t r o l t h e 2 5 k w p u l l - h i g h r e s i s t o r o f i n d i v i d u a l p i n s i n p o r t 9 . 0 : e n a b l e t h e p u l l - h i g h f u n c t i o n 1 : d i s a b l e t h e p u l l - h i g h f u n c t i o n i o c d [ 4 , 7 ] r e s e r v e d b i t s
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r 2 0 p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 ) 1 1 . 2 2 . 2 0 0 6 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) 8 . 2 . 3 . 8 i o c e ( s p e c i a l f u n c t i o n c o n t r o l r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ 1 1 0 1 _ 0 1 1 1 ) b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 / d u a l c l o c k / w u e w t e r u n d e v i c e _ r e s u m e / p u 8 / p u 6 / p u 5 i o c e [ 0 , 1 , 2 ] p o r t 5 , p o r t 6 , a n d p o r t 8 p u l l - h i g h c o n t r o l b i t s . 0 : e n a b l e 1 : d i s a b l e i o c e [ 3 ] s e t t i n g t h i s b i t w i l l a l l o w t h e u d c t o e x e c u t e r e s u m e s i g n a l i n g . t h i s b i t i s s e t b y f i r m w a r e t o g e n e r a t e a s i g n a l t o w a k e - u p t h e u s b h o s t a n d i s c l e a r e d a s s o o n a s t h e u s b s u s p e n d s i g n a l b e c o m e s l o w . i t c a n o n l y b e u s e d i n d u a l c l o c k m o d e w h e n t h e u s b s u s p e n d s i g n a l b e c o m e s l o w . n o t e i o c e [ 3 ] : d e v i c e _ r e s u m e b i t i n e m 7 8 m 6 1 1 , t h i s b i t i s a l w a y s 0 . i t i s n o t f o r u s e . i n e m 7 8 m 6 1 1 e , t h i s b i t i s o . k . f o r u s e . i o c e [ 4 ] r u n b i t . t h i s b i t c a n b e c l e a r e d b y f i r m w a r e a n d s e t d u r i n g p o w e r - o n , o r b y t h e h a r d w a r e a t a f a l l i n g e d g e o f t h e w a k e - u p s i g n a l . w h e n t h i s b i t i s c l e a r e d , t h e c l o c k s y s t e m i s d i s a b l e d a n d t h e m c u e n t e r s i n t o p o w e r d o w n m o d e . a t t h e t r a n s i t i o n o f w a k e - u p s i g n a l f r o m h i g h t o l o w , t h i s b i t i s s e t t o e n a b l e t h e c l o c k s y s t e m . 0 : s l e e p m o d e . t h e e m 7 8 m 6 1 1 e i s i n p o w e r d o w n m o d e . 1 : r u n m o d e . t h e e m 7 8 m 6 1 1 e i s w o r k i n g n o r m a l l y . i o c e [ 5 ] w a t c h d o g t i m e r e n a b l e b i t . t h e b i t d i s a b l e s / e n a b l e s t h e w a t c h d o g t i m e r . 0 : d i s a b l e w d t 1 : e n a b l e w d t i o c e [ 6 ] e n a b l e t h e w a k e - u p f u n c t i o n a s t r i g g e r e d b y p o r t - c h a n g e d . t h i s b i t i s s e t b y u d c . 0 : e n a b l e t h e w a k e - u p f u n c t i o n 1 : d i s a b l e t h e w a k e - u p f u n c t i o n i o c e [ 7 ] d u a l c l o c k c o n t r o l b i t . t h i s b i t i s u s e d t o s e l e c t t h e f r e q u e n c y o f s y s t e m c l o c k . w h e n t h i s b i t i s c l e a r e d , t h e m c u w i l l r u n o n v e r y l o w f r e q u e n c y f o r p o w e r s a v i n g a n d t h e u d c w i l l s t o p w o r k i n g . 0 : s e l e c t s t o r u n o n s l o w f r e q u e n c y 1 : s e l e c t s e m 7 8 m 6 1 1 e t o r u n o n n o r m a l f r e q u e n c y
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 1 ) 0 4 . 2 0 . 2 0 0 7 2 1 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) 8 . 2 . 3 . 9 i o c f ( i n t e r r u p t m a s k r e g i s t e r ) d e f a u l t v a l u e j ( 0 b _ 0 0 0 0 _ 0 0 0 0 ) b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 u s b h o s t r e s u m e _ i e s e 2 _ i e s e 1 _ i e p o r t 7 s t a t e c h a n g e _ 1 e u s b r e s e t _ i e u s b s u s p e n d _ i e e p 0 _ i e t c c _ i e i o c f [ 0 ~ 7 ] t c c / e p 0 / u s b s u s p e n d / u s b r e s e t / p o r t 7 s t a t e c h a n g e / s e 1 _ i e / s e 2 _ i e / u s b h o s t r e s u m e i n t e r r u p t e n a b l e b i t s . t h e s e e i g h t b i t s c o n t r o l t h e t c c i n t e r r u p t f u n c t i o n , e p 0 i n t e r r u p t , u s b s u s p e n d i n t e r r u p t , u s b r e s e t i n t e r r u p t , p o r t 7 s t a t e c h a n g e i n t e r r u p t a n d u s b h o s t r e s u m e i n t e r r u p t r e s p e c t i v e l y . i n d i v i d u a l i n t e r r u p t i s e n a b l e d b y s e t t i n g i t s a s s o c i a t e d c o n t r o l b i t i n t h e i o c f t o " 1 . " 0 : d i s a b l e i n t e r r u p t 1 : e n a b l e i n t e r r u p t o n l y w h e n t h e g l o b a l i n t e r r u p t i s e n a b l e d b y t h e e n i i n s t r u c t i o n w i l l t h e i n d i v i d u a l i n t e r r u p t w o r k . a f t e r d i s i i n s t r u c t i o n , a n y i n t e r r u p t w i l l n o t w o r k e v e n i f t h e r e s p e c t i v e c o n t r o l b i t s o f i o c f a r e s e t t o 1 . t h e u s b h o s t r e s u m e i n t e r r u p t w o r k s o n l y i n d u a l c l o c k m o d e . t h i s i s b e c a u s e w h e n t h e m c u i s i n s l e e p m o d e , i t w i l l b e a u t o m a t i c a l l y w o k e n u p b y t h e u d c r e s u m e s i g n a l . 8 . 3 e x t r a c o n t r o l r e g i s t e r f i v e e x t r a c o n t r o l r e g i s t e r s a r e a v a i l a b l e t o c o n t r o l s o m e s p e c i a l f u n c t i o n s . t h e f i v e r e g i s t e r s a r e e r a ( a d c o n t r o l r e g i s t e r ) , e r b ( a d _ l s b ) , e r c ( a d _ m s b ) , e r d ( a d _ r a t e ) , a n d e r e ( p w m c o n t r o l r e g i s t e r ) r e m e m b e r t o s e t i o c a [ 3 ] b e f o r e a c c e s s i n g t h e s e f i v e r e g i s t e r s . t h e o p e r a t i n g m e t h o d i s t h e s a m e a s w i t h o t h e r c o n t r o l r e g i s t e r s . 8 . 4 u s b a p p l i c a t i o n f i f o s f o r u s b a p p l i c a t i o n , e m 7 8 m 6 1 1 e p r o v i d e s a n 8 - b y t e f i r s t - i n - f i r s t - o u t ( f i f o ) b u f f e r f o r e a c h e n d p o i n t . t h e b u f f e r c a n n o t b e a c c e s s e d d i r e c t l y . h o w e v e r , a c o r r e s p o n d i n g d a t a b y t e p o i n t e r r e g i s t e r f o r e a c h e n d p o i n t i s m a d e a v a i l a b l e t o a d d r e s s t h e i n d i v i d u a l b y t e o f t h e f i f o b u f f e r . t h e c o n t e n t o f t h e i n d i v i d u a l b y t e w i l l m a p t o a s p e c i a l r e g i s t e r .
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r 2 2 p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 ) 1 1 . 2 2 . 2 0 0 6 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) c o u n t e r p o i n t e r d a t a b y t e p o i n t e r o f e p 0 e p 0 ' s f i f o 0 1 2 3 4 5 6 7 b i - d i r e c t i o n a l u n i - d i r e c t i o n a l d a t a b y t e p o i n t e r o f e p 1 e p 1 ' s f i f o d a t a b y t e p o i n t e r o f e p 2 c o u n t e r p o i n t e r 0 1 2 3 4 5 6 7 c o u n t e r p o i n t e r 0 1 2 3 4 5 6 7 e p 1 ' s f i f o a d d r e s s ( r d ) 0 x 1 0 0 x 1 1 0 x 1 2 0 x 0 0 0 x 0 1 0 x 0 2 b i - d i r e c t i o n a l 8 . 5 u s b a p p l i c a t i o n e m 7 8 m 6 1 1 e i s d e s i g n e d s p e c i a l l y f o r u s b d e v i c e a p p l i c a t i o n a n d h a s m a n y p o w e r f u l f u n c t i o n s t h a t s u p p o r t t h e f i r m w a r e t o f r e e i t s e l f f r o m c o m p l e x s i t u a t i o n i n v a r i o u s a s p e c t s o f u s b a p p l i c a t i o n . 8 . 5 . 1 u s b d e v i c e c o n t r o l l e r t h e e m 7 8 m 6 1 1 e b u i l t - i n u s b d e v i c e c o n t r o l l e r ( u d c ) c a n i n t e r p r e t t h e u s b s t a n d a r d c o m m a n d a n d r e s p o n d a u t o m a t i c a l l y w i t h o u t i n v o l v i n g f i r m w a r e . t h e e m b e d d e d s e r i e s i n t e r f a c e e n g i n e ( s i e ) h a n d l e s t h e s e r i a l i z a t i o n a n d d e - s e r i a l i z a t i o n o f a c t u a l u s b t r a n s m i s s i o n . t h u s , a d e v e l o p e r c a n c o n c e n t r a t e h i s e f f o r t s m o r e i n p e r f e c t i n g t h e d e v i c e a c t u a l f u n c t i o n s a n d s p e n d l e s s e n e r g y i n d e a l i n g w i t h u s b t r a n s a c t i o n . t h e u d c h a n d l e s a n d d e c o d e s m o s t s t a n d a r d u s b c o m m a n d s d e f i n e d i n t h e u s b s p e c i f i c a t i o n r e v 1 . 1 . i f t h e u d c r e c e i v e s a n u n s u p p o r t e d c o m m a n d , i t w i l l s e t a f l a g t o n o t i f y t h e m c u o f t h e r e c e i p t o f s u c h c o m m a n d . t h e s t a n d a r d c o m m a n d s t h a t t h e e m 7 8 m 6 1 1 e s u p p o r t s i n c l u d e s ; c l e a r f e a t u r e , g e t c o n f i g u r a t i o n , g e t i n t e r f a c e , g e t s t a t u s , s e t a d d r e s s , s e t c o n f i g u r a t i o n , s e t f e a t u r e , a n d s e t i n t e r f a c e . e a c h t i m e t h e u d c r e c e i v e s a u s b c o m m a n d , i t w r i t e s t h e c o m m a n d i n t o t h e e p 0 s f i f o . o n l y w h e n i t r e c e i v e s u n s u p p o r t e d c o m m a n d w i l l t h e u d c n o t i f y t h e m c u t h r o u g h i n t e r r u p t . h e n c e , t h e e m 7 8 m 6 1 1 e i s v e r y f l e x i b l e u n d e r u s b a p p l i c a t i o n s i n c e t h e d e v e l o p e r c a n f r e e l y c h o o s e t h e m e t h o d o f d e c o d i n g t h e u s b c o m m a n d a s d i c t a t e d b y d i f f e r e n t s i t u a t i o n .
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 1 ) 0 4 . 2 0 . 2 0 0 7 2 3 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) 8 . 5 . 2 d e v i c e a d d r e s s a n d e n d p o i n t s e m 7 8 m 6 1 1 e s u p p o r t s o n e d e v i c e a d d r e s s a n d t h r e e e n d p o i n t s , e p 0 f o r c o n t r o l e n d p o i n t , e p 1 a n d e p 2 f o r i n t e r r u p t e n d p o i n t . s e n d i n g d a t a t o u s b h o s t i n e m 7 8 m 6 1 1 e i s v e r y e a s y . j u s t w r i t e d a t a i n t o e p s f i f o , t h e n s e t f l a g , a n d t h e u d c w i l l h a n d l e t h e r e s t . i t w i l l t h e n c o n f i r m t h a t t h e u s b h o s t h a s r e c e i v e d t h e c o r r e c t d a t a f r o m e m 7 8 m 6 1 1 e . 8 . 6 r e s e t t h e e m 7 8 m 6 1 1 e p r o v i d e s t h r e e t y p e s o f r e s e t : ( 1 ) p o w e r - o n r e s e t , ( 2 ) w a t c h d o g r e s e t , a n d ( 3 ) u s b r e s e t . 8 . 6 . 1 p o w e r - o n r e s e t p o w e r - o n r e s e t o c c u r s w h e n t h e d e v i c e i s a t t a c h e d t o p o w e r a n d a r e s e t s i g n a l i s i n i t i a t e d . t h e s i g n a l w i l l l a s t u n t i l t h e m c u b e c o m e s s t a b l e . a f t e r a p o w e r - o n r e s e t , t h e m c u e n t e r s i n t o t h e f o l l o w i n g p r e d e t e r m i n e d s t a t e s ( s e e b e l o w ) , a n d t h e n , i t i s r e a d y t o e x e c u t e t h e p r o g r a m . a . t h e p r o g r a m c o u n t e r i s c l e a r e d . b . t h e t c c t i m e r a n d w a t c h d o g t i m e r a r e c l e a r e d . c . s p e c i a l r e g i s t e r s a n d s p e c i a l c o n t r o l r e g i s t e r s a r e a l l s e t t o t h e i r i n i t i a l v a l u e s . 8 . 6 . 2 w a t c h d o g r e s e t w h e n t h e w a t c h d o g t i m e r o v e r f l o w s , i t c a u s e s t h e w a t c h d o g t o r e s e t . a f t e r i t r e s e t s , t h e p r o g r a m i s e x e c u t e d f r o m t h e b e g i n n i n g a n d s o m e r e g i s t e r s w i l l b e r e s e t . t h e u d c h o w e v e r , r e m a i n s u n a f f e c t e d . 8 . 6 . 3 u s b r e s e t w h e n t h e u d c d e t e c t s a u s b r e s e t s i g n a l o n t h e u s b b u s , a n m c u i n t e r r u p t o c c u r s , a f t e r w h i c h i t p r o c e e d s t o p e r f o r m t h e s p e c i f i e d p r o c e s s t h a t f o l l o w s . a f t e r a u s b d e v i c e i s a t t a c h e d t o t h e u s b p o r t , i t c a n n o t r e s p o n d t o a n y b u s t r a n s a c t i o n s u n t i l i t r e c e i v e s a u s b r e s e t s i g n a l f r o m t h e b u s . 8 . 7 s a v i n g p o w e r m o d e t h e e m 7 8 m 6 1 1 e p r o v i d e s t w o o p t i o n s o f p o w e r - s a v i n g m o d e s f o r e n e r g y c o n s e r v a t i o n , i . e . , p o w e r d o w n m o d e a n d d u a l c l o c k m o d e . 8 . 7 . 1 p o w e r d o w n m o d e t h e e m 7 8 m 6 1 1 e e n t e r s i n t o p o w e r d o w n m o d e b y c l e a r i n g t h e r u n r e g i s t e r ( i o c e [ 4 ] ) . d u r i n g t h i s m o d e , t h e o s c i l l a t o r i s t u r n e d o f f a n d t h e m c u g o e s t o s l e e p . i t w i l l w a k e u p w h e n s i g n a l f r o m u s b h o s t i s r e s u m e d , o r w h e n a w a t c h d o g r e s e t o c c u r s o r w h e n a n i n p u t p o r t s t a t e c h a n g e s . i f t h e m c u w a k e s u p w h e n i / o p o r t s t a t u s c h a n g e s , t h e d i r e c t i o n o f t h e i / o p o r t s h o u l d b e s e t a t i n p u t d i r e c t i o n , a n d t h e n r e a d t h e s t a t e o f p o r t . f o r e x a m p l e :
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r 2 4 p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 ) 1 1 . 2 2 . 2 0 0 6 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) : / / s e t t h e p o r t 6 t o i n p u t p o r t m o v a , @ 0 x f f i o w p o r t 6 / / r e a d t h e s t a t e o f p o r t 6 m o v p o r t 6 , p o r t 6 / / c l e a r t h e r u n b i t i o r 0 x e a n d a , 0 b 1 1 1 0 1 1 1 1 i o w 0 x e : : 8 . 7 . 2 d u a l c l o c k m o d e t h e e m 7 8 m 6 1 1 e h a s o n e i n t e r n a l o s c i l l a t o r f o r p o w e r s a v i n g a p p l i c a t i o n . c l e a r i n g t h e b i t i o c e [ 7 ] w i l l e n a b l e t h e l o w f r e q u e n c y o s c i l l a t o r . a t t h e s a m e t i m e , t h e e x t e r n a l o s c i l l a t o r w i l l b e t u r n e d o f f . t h e n t h e m c u w i l l r u n u n d e r v e r y l o w f r e q u e n c y t o c o n s e r v e p o w e r . f o u r t y p e s o f f r e q u e n c y a r e a v a i l a b l e f o r s e l e c t i o n i n s e t t i n g b i t s i o c a [ 6 , 7 ] . t h e u s b h o s t r e s u m e i n t e r r u p t c a n o n l y b e u s e d i n t h i s m o d e . i f t h i s i n t e r r u p t i s e n a b l e d , t h e m c u w i l l b e i n t e r r u p t e d w h e n t h e u s b h o s t r e s u m e s i g n a l i s d e t e c t e d o n u s b b u s . 8 . 8 i n t e r r u p t t h e e m 7 8 m 6 1 1 e h a s o n e i n t e r r u p t v e c t o r i n 0 x 0 0 0 1 . w h e n a n i n t e r r u p t o c c u r s d u r i n g a n m c u p r o g r a m r u n , i t w i l l j u m p t o t h e i n t e r r u p t v e c t o r ( 0 x 0 0 0 1 ) a n d e x e c u t e t h e i n s t r u c t i o n s s e q u e n t i a l l y f r o m t h e i n t e r r u p t v e c t o r . r f i s t h e i n t e r r u p t s t a t u s r e g i s t e r , w h i c h r e c o r d s t h e i n t e r r u p t s t a t u s i n t h e r e l a t i v e f l a g s / b i t s . t h e i n t e r r u p t c o n d i t i o n c o u l d b e o n e o f t h e f o l l o w i n g : t c c o v e r f l o w : w h e n t h e t i m e r c l o c k / c o u n t e r r e g i s t e r ( r 1 ) o v e r f l o w s , t h e s t a t u s f l a g r f [ 0 ] w i l l b e s e t t o 1 . i t s i n t e r r u p t v e c t o r i s 0 x 0 0 0 1 . p o r t 7 s t a t e c h a n g e : w h e n t h e i n p u t s i g n a l s i n p o r t 7 c h a n g e s , t h e s t a t u s f l a g r f [ 4 ] w i l l b e s e t t o 1 . i t s i n t e r r u p t v e c t o r i s 0 x 0 0 0 1 . s e 1 p a t t e r n d e t e c t i o n i n t e r r u p t c o n d i t i o n s : i f t h e p a t t e r n d e t e c t i o n a p p l i c a t i o n f u n c t i o n i s e n a b l e d , t h e r e w i l l b e f o u r c o n d i t i o n s w i t h w h i c h i n t e r r u p t i s g e n e r a t e d , a n d t h e s t a t u s f l a g r f [ 5 ] i s s e t t o 1 ( i n t e r r u p t v e c t o r i s 0 x 0 0 0 1 ) . a ) s i g n a l f r o m p . 9 2 c h a n g e s t o l o w a n d t h e p a t t e r n c o u n t e r v a l u e i s b i g g e r t h a n r 1 1 r e g i s t e r v a l u e .
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 1 ) 0 4 . 2 0 . 2 0 0 7 2 5 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) b ) s i g n a l f r o m p . 9 2 c h a n g e s t o h i g h , a n d p a t t e r n c o u n t e r v a l u e b i g g e r t h a n r 1 0 r e g i s t e r v a l u e . c ) p . 9 2 r e m a i n s h i g h , a n d t h e p a t t e r n c o u n t e r v a l u e i s e q u a l t o 0 x f f . d ) p . 9 2 r e m a i n s l o w , a n d t h e p a t t e r n c o u n t e r v a l u e i s e q u a l t o 0 x f f . s e 2 p a t t e r n c o u n t e r i n t e r r u p t c o n d i t i o n s : i f t h e p a t t e r n d e t e c t i o n a p p l i c a t i o n f u n c t i o n i s e n a b l e d , t h e r e w i l l b e t h r e e c o n d i t i o n s w i t h w h i c h i n t e r r u p t i s g e n e r a t e d a n d t h e s t a t u s f l a g r f [ 6 ] i s s e t t o 1 ( i n t e r r u p t v e c t o r i s 0 x 0 0 0 1 ) . a ) s i g n a l f r o m p . 9 3 c h a n g e s t o l o w a n d t h e p a t t e r n c o u n t e r v a l u e i s b i g g e r t h a n r 1 3 r e g i s t e r v a l u e . b ) s i g n a l f r o m p . 9 3 c h a n g e s t o h i g h a n d t h e p a t t e r n c o u n t e r v a l u e i s b i g g e r t h a n r 1 2 r e g i s t e r v a l u e . c ) p . 9 3 r e m a i n s h i g h , a n d t h e p a t t e r n c o u n t e r v a l u e i s e q u a l t o 0 x f f . d ) p . 9 3 r e m a i n s l o w , a n d t h e p a t t e r n c o u n t e r v a l u e i s e q u a l t o 0 x f f . e p 0 i n t e r r u p t : w h e n t h e u d c s u c c e s s f u l l y a c c e p t s a s e t u p t r a n s a c t i o n f r o m h o s t t o e n d p o i n t 0 , t h e s t a t u s f l a g r f [ 1 ] i s s e t t o 1 . i t s i n t e r r u p t v e c t o r i s 0 x 0 0 0 1 . u s b s u s p e n d : w h e n u d c d e t e c t s a u s b s u s p e n d s i g n a l o n t h e u s b b u s , t h e s t a t u s f l a g r f [ 2 ] i s s e t t o 1 . i t s i n t e r r u p t v e c t o r i s 0 x 0 0 0 1 . u s b r e s e t : w h e n t h e u d c d e t e c t s a u s b r e s e t s i g n a l o n t h e u s b b u s , t h e s t a t u s f l a g r [ 3 ] i s s e t t o 1 . i t s i n t e r r u p t v e c t o r i s 0 x 0 0 0 1 . u s b h o s t r e s u m e : w h e n t h e u d c d e t e c t s t h a t t h e u s b b u s i s n o l o n g e r i n s u s p e n d c o n d i t i o n a n d w i t h o u t d e v i c e r e s u m e s i g n a l , t h e s t a t u s f l a g r [ 7 ] i s s e t t o 1 . i t s i n t e r r u p t v e c t o r i s 0 x 0 0 0 1 . i o c f i s a n i n t e r r u p t m a s k r e g i s t e r w h i c h c a n b e s e t b i t b y b i t . w h i l e t h e i r r e s p e c t i v e b i t i s w r i t t e n t o 0 , t h e h a r d w a r e i n t e r r u p t w i l l i n h i b i t , t h a t i s , t h e e m 7 8 m 6 1 1 e w i l l n o t j u m p t o t h e i n t e r r u p t v e c t o r t o e x e c u t e i n s t r u c t i o n s . b u t t h e i n t e r r u p t s t a t u s f l a g s s t i l l r e c o r d s t h e c o n d i t i o n s n o m a t t e r w h e t h e r t h e i n t e r r u p t i s m a s k e d o r n o t . t h e i n t e r r u p t s t a t u s f l a g s m u s t b e c l e a r e d b y f i r m w a r e b e f o r e l e a v i n g t h e i n t e r r u p t s e r v i c e r o u t i n e a n d e n a b l i n g o t h e r i n t e r r u p t . t h e g l o b a l i n t e r r u p t i s e n a b l e d b y t h e e n i ( r e t i ) i n s t r u c t i o n a n d i s d i s a b l e d b y t h e d i s i i n s t r u c t i o n . 8 . 9 p a t t e r n d e t e c t a p p l i c a t i o n ( p d a ) 8 . 9 . 1 f u n c t i o n d e s c r i p t i o n t h i s f u n c t i o n i s d e s i g n e d f o r t h e s e r i a l s i g n a l t r a n s m i s s i o n , e . g . , t h e t r a n s m i s s i o n b e t w e e n a w i r e l e s s d e v i c e a n d i t s r e c e i v e r b o x . t h e e m 7 8 m 6 1 1 h a s t w o s e t s o f b u i l t - i n p a t t e r n d e t e c t a p p l i c a t i o n b l o c k t h a t e n s u r e s t h e e m 7 8 m 6 1 1 i s e q u i p p e d w i t h a c o m p o u n d d e v i c e , s u c h a s t h e r e c e i v e r b o x c o n t r o l l e r f o r a w i r e l e s s k e y b o a r d p a i r e d w i t h a w i r e l e s s m o u s e .
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r 2 6 p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 ) 1 1 . 2 2 . 2 0 0 6 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) p a t t e r n d e t e c t a p p l i c a t i o n ( p d a ) c a n c a l c u l a t e t h e l e n g t h o f o n e p a t t e r n a n d i n t e r r u p t t h e m c u w h i l e t h e s e r i a l s i g n a l i s t r a n s i t i n g f r o m h i g h t o l o w ( o r v i s e - v e r s a ) . t h e n t h e m c u r e a d s t h e l e n g t h v a l u e f r o m a s p e c i f i e d r e g i s t e r . 8 . 9 . 2 c o n t r o l r e g i s t e r t h e p d a i n c l u d e s a n e n a b l e c o n t r o l b i t , o n e c o n t r o l r e g i s t e r a n d 4 - l e n g t h c o u n t e r r e g i s t e r s i n 0 x 1 0 ~ 0 x 1 3 . i o c a [ 2 ] p d a e n a b l e c o n t r o l b i t w h e n t h i s b i t i s s e t , t h e p d a f u n c t i o n s t a r t s a n d t h e p 9 2 a n d p 9 3 b e c o m e i n p u t p i n a u t o m a t i c a l l y t o s a m p l e t h e s e r i a l s i g n a l . 0 : d i s a b l e p d a f u n c t i o n 1 : e n a b l e p d a f u n c t i o n r b ( p d a c o n t r o l r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ 0 0 0 0 _ 0 0 0 0 ) b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 s e 2 . f s e 1 . f s r . 2 s r . 1 s r . 0 d b 2 d b 1 d b 0 t h i s r e g i s t e r i s u s e d t o d e f i n e t w o p a r a m e t e r s o f p d a f u n c t i o n ; s i g n a l s a m p l i n g r a t e a n d d e b o u n c e l e n g t h . w h e n a p a t t e r n e n d s , t h e v a l u e i n t h e c o u n t e r i s l o a d e d i n t o i t s r e s p e c t i v e r e g i s t e r a n d t h e r b [ 6 ] o r r b [ 7 ] i s s e t t o i n d i c a t e w h i c h t y p e o f p a t t e r n ( h i g h o r l o w ) i s a t i t s e n d o r w h i c h t y p e o f p a t t e r n c o u n t e r i s o n o v e r f l o w . 0 : l o w p a t t e r n 1 : h i g h p a t t e r n r 1 0 ( p . 9 2 l o w p a t t e r n c o u n t e r ) t h i s r e g i s t e r r e c o r d s t h e l e n g t h o f p . 9 2 i n l o w s t a t u s . r 1 1 ( p . 9 2 h i g h p a t t e r n c o u n t e r ) t h i s r e g i s t e r r e c o r d s t h e l e n g t h o f p . 9 2 i n h i g h s t a t u s . r 1 2 ( p . 9 3 l o w p a t t e r n c o u n t e r ) t h i s r e g i s t e r r e c o r d t h e l e n g t h o f p . 9 3 i n l o w s t a t u s . r 1 3 ( p . 9 3 h i g h p a t t e r n c o u n t e r ) t h i s r e g i s t e r r e c o r d s t h e l e n g t h o f p . 9 3 i n h i g h s t a t u s . r 1 0 ~ r 1 3 f u n c t i o n a s g e n e r a l r e g i s t e r s i f t h i s f u n c t i o n i s n o t e n a b l e d . o n c e t h e e n a b l e d b i t i s s e t , t h e s e f o u r r e g i s t e r s w i l l b e l o a d e d w i t h t h e v a l u e o f t h e p a t t e r n c o u n t e r . 8 . 9 . 3 s a m p l i n g r a t e a n d d e b o u n c e l e n g t h a l t h o u g h t h e t w o - p a t t e r n d e t e c t p i n s a r e s e p a r a t e , a n d e a c h p i n h a s i t s o w n p a t t e r n c o u n t e r , b o t h p i n s u s e t h e s a m e s a m p l i n g r a t e a n d d e b o u n c e l e n g t h p a r a m e t e r s . t h e p d a s a m p l e s t h e s e r i a l s i g n a l e v e r y f i x e d i n t e r v a l . t h e p a t t e r n c o u n t e r w i l l b e i n c r e m e n t e d b y o n e a t s a m p l i n g t i m e i f t h e s i g n a l r e m a i n s u n c h a n g e d . i f t h e s i g n a l i s a t
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 1 ) 0 4 . 2 0 . 2 0 0 7 2 7 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) h i g h s t a t e , t h e n t h e h i g h p a t t e r n c o u n t e r w i l l i n c r e a s e ; o t h e r w i s e t h e l o w p a t t e r n c o u n t e r i n c r e a s e s . a s l o n g a s t h e s i g n a l s t a t e c h a n g e s , t h e p d a w i l l d e b o u n c e s i g n a l a n d l o a d t h e v a l u e o f p a t t e r n c o u n t e r i n t o t h e r e s p e c t i v e l y r e g i s t e r f o r t h e f i r m w a r e t o r e a d . f o r e x a m p l e , i f t h e s i g n a l i n p . 9 2 i s i n l o w s t a t e , t h e l o w c o u n t e r o f p . 9 2 w i l l c o u n t c o n t i n u o u s l y u n t i l t h e s t a t e o f t h e i n p u t s i g n a l i n p . 9 2 c h a n g e s . w h e n a s t a t e c h a n g e o c c u r s ( i n t h i s c a s e , t h e s i g n a l c h a n g e s f r o m l o w t o h i g h s t a t e ) , t h e p d a w i l l t a k e a t i m e b r e a k ( w h i c h i s e q u a l t o t h e r e s u l t o f s a m p l i n g i n t e r v a l m u l t i p l i e d b y t h e d e b o u n c e l e n g t h ) , t o a v o i d p o s s i b l e n o i s e . a f t e r t h e d e b o u n c e l e n g t h t i m e , i f t h e s i g n a l r e m a i n s i n h i g h s t a t e , t h e h i g h p a t t e r n c o u n t e r w i l l s t a r t t o c o u n t a n d l o a d t h e l o w p a t t e r n c o u n t e r s v a l u e i n t o r 1 0 . a t t h e s a m e t i m e , r b [ 6 ] i s c l e a r e d t o i n d i c a t e t h a t l o w p a t t e r n i s o v e r . t h e c o r r e l a t i o n b e t w e e n t h e c o n t r o l r e g i s t e r v a l u e a n d d e b o u n c e t i m e a r e a s f o l l o w s : d b . 2 d b . 1 d b . 0 d e b o u n c e t i m e 0 0 0 0 0 0 1 s a m p l i n g c l o c k 0 1 0 s a m p l i n g c l o c k 2 0 1 1 s a m p l i n g c l o c k 3 1 0 0 s a m p l i n g c l o c k 4 1 0 1 s a m p l i n g c l o c k 5 1 1 0 s a m p l i n g c l o c k 6 1 1 1 s a m p l i n g c l o c k 7 o n t h e o t h e r h a n d , w h e n t h e s i g n a l o f p 9 2 a l w a y s r e m a i n s l o w , t h e l o w p a t t e r n c o u n t e r o f p 9 2 w i l l e v e n t u a l l y o v e r f l o w . o n c e t h e c o u n t e r o v e r f l o w s , t h e c o n t e n t o f t h e c o u n t e r w i l l a l s o b e l o a d e d i n t o r 1 0 , t h a t i s , t h e r e g i s t e r i s w r i t t e n t o 0 x f f , a n d t h e c o u n t e r i s r e s e t t o c o u n t f r o m z e r o a g a i n . i f t h e h a r d w a r e i n t e r r u p t o f p d a f u n c t i o n i s e n a b l e d , ( i o c f [ 5 ] i s e q u a l t o 1 ) , t h e n t h e p r o g r a m w i l l g o t o 0 x 0 0 0 1 t o e x e c u t e i n t e r r u p t r o u t i n e w h i l e t h e c o n t e n t o f a p a t t e r n c o u n t e r i s l o a d e d i n t o t h e r e g i s t e r . t h e c o r r e l a t i o n b e t w e e n t h e v a l u e o f c o n t r o l r e g i s t e r a n d a c t u a l s a m p l i n g r a t e a r e a s s h o w n b e l o w : s r . 2 s r . 1 s r . 0 s a m p l i n g r a t e ( e x t e r n a l o s c i l l a t o r f r e q u e n c y = 6 m h z ) s a m p l i n g r a t e ( e x t e r n a l o s c i l l a t o r f r e q u e n c y = 1 2 m h z ) 0 0 0 n . a . n . a . 0 0 1 n . a . n . a . 0 1 0 1 5 0 0 ( c o u n t / m s e c ) n . a . 0 1 1 7 5 0 ( c o u n t / m s e c ) 1 5 0 0 ( c o u n t / m s e c ) 1 0 0 3 7 5 ( c o u n t / m s e c ) 7 5 0 ( c o u n t / m s e c ) 1 0 1 1 8 8 ( c o u n t / m s e c ) 3 7 5 ( c o u n t / m s e c ) 1 1 0 9 4 ( c o u n t / m s e c ) 1 8 8 ( c o u n t / m s e c ) 1 1 1 4 7 ( c o u n t / m s e c ) 9 4 ( c o u n t / m s e c )
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r 2 8 p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 ) 1 1 . 2 2 . 2 0 0 6 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) a f t e r t h e p d a f u n c t i o n i s e n a b l e d ( b y s e t t i n g i o c a [ 2 ] t o 1 ) , u s e r c a n w r i t e a d e f a u l t v a l u e t o t h e h i g h p a t t e r n c o u n t e r r e g i s t e r a n d l o w p a t t e r n c o u n t e r r e g i s t e r . t h e n s e t t h e c o r r e s p o n d i n g i n t e r r u p t e n a b l e b i t ( i o c f [ 5 ] ) . w h e n t h e c o u n t i n g v a l u e o f o n e h p a t t e r n i s b i g g e r t h a n t h e d e f a u l t v a l u e o f r 1 1 , t h e p a t t e r n d e t e c t i n g i n t e r r u p t w i l l b e g e n e r a t e d . s i m i l a r l y , i f t h e c o u n t i n g v a l u e o f o n e l p a t t e r n i s b i g g e r t h a n t h e d e f a u l t v a l u e o f r 1 0 , l o w p a t t e r n d e t e c t i n g i n t e r r u p t w i l l o c c u r . t h u s , t h e e m 7 8 m 6 1 1 i s n o t i f i e d a n d a w a r e t h a t o n e e f f e c t i v e p a t t e r n i s r e c e i v e d f r o m p . 9 2 . i f u s e r d o e s n o t n e e d t h e s e t w o i n t e r r u p t s , t h e y c a n b e m a s k e d . t h e n e w v a l u e o f c o u n t i n g a p a t t e r n w i l l s t i l l b e l o a d e d t o t h e r 1 0 a n d r 1 1 . t h e f i r m w a r e m u s t p o l l a n d d e t e r m i n e w h e t h e r t h e v a l u e o f t h e s e t w o r e g i s t e r s h a s c h a n g e d o r n o t . 8 . 1 0 p u l s e w i d t h m o d u l a t i o n ( p w m ) 8 . 1 0 . 1 f u n c t i o n d e s c r i p t i o n i n p w m m o d e , b o t h p w m 1 ( p . 9 2 ) a n d p w m 2 ( p . 9 3 ) p r o d u c e p l u s p r o g r a m m a b l e s i g n a l o f u p t o 8 b i t s r e s o l u t i o n . t h e p w m p e r i o d i s d e f i n e d a s 0 x f f t i m e r c o u n t e r c l o c k . t h e t i m e r c o u n t e r c l o c k s o u r c e i s c o n t r o l l e d b y a n e x t r a c o n t r o l r e g i s t e r , e r e . f o r e x a m p l e ; i f t h e c l o c k s o u r c e i s 1 m h z , t h e n t h e p e r i o d w i l l b e 2 5 5 s e c o n d s . p e r i o d = 2 5 5 ( 1 / t i m e r c o u n t e r c l o c k ) p e r i o d ( 0 x f f * c l o c k ) d u t y c y c l e f i g . 8 - 2 t h e p w m o u t p u t t i m i n g 8 . 1 0 . 2 d u t y c y c l e t h e p w m d u t y c y c l e i s d e f i n e d b y w r i t i n g t o t h e r 1 0 / r 1 1 r e g i s t e r f o r p w m 1 / p w m 2 . d u t y c y c l e = ( r 1 0 / 2 5 5 ) 1 0 0 % f o r p w m 1 ( r 1 1 / 2 5 5 ) 1 0 0 % f o r p w m 2 8 . 1 0 . 3 c o n t r o l r e g i s t e r r 1 0 ( p w m 1 d u t y c y c l e r e g i s t e r ) a s p e c i f i e d v a l u e k e e p s t h e o u t p u t o f p w m 1 t o r e m a i n a t h i g h f o r a p e r i o d . r 1 1 ( p w m 2 d u t y c y c l e r e g i s t e r ) a s p e c i f i e d v a l u e k e e p s t h e o u t p u t o f p w m 2 t o r e m a i n a t h i g h f o r a p e r i o d . e r e ( p w m c o n t r o l r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ 0 0 0 0 _ 0 0 0 1 ) b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 p e n 2 p e n 1 - - - p s 2 p s 1 p s 0
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 1 ) 0 4 . 2 0 . 2 0 0 7 2 9 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) e r e [ 0 ~ 2 ] p w m c l o c k p r e s c a l e r p s 2 p s 1 p s 0 c l o c k ( h z ) p e r i o d / 2 5 5 ( s ) 0 0 0 f o s c / 3 0 . 5 0 0 1 f o s c / 6 1 0 1 0 f o s c / 1 2 2 0 1 1 f o s c / 2 4 4 1 0 0 f o s c / 4 8 8 1 0 1 f o s c / 9 6 1 6 1 1 0 f o s c / 1 9 2 3 2 1 1 1 f o s c / 3 8 4 6 4 e r e [ 6 , 7 ] p w m 1 / p w m 2 e n a b l e b i t 0 : d i s a b l e 1 : e n a b l e 8 . 1 1 a n a l o g - t o - d i g i t a l c o n v e r t e r ( a d c ) 8 . 1 1 . 1 f u n c t i o n d e s c r i p t i o n t h e a n a l o g t o d i g i t a l c o n v e r t e r c o n s i s t s o f a 5 - b i t a n a l o g m u l t i p l e x e r , o n e c o n t r o l r e g i s t e r ( e r a ) , a n d t w o d a t a r e g i s t e r s ( r b s & r c s ) f o r 1 0 - b i t r e s o l u t i o n . t h e a d c m o d u l e u t i l i z e s s u c c e s s i v e a p p r o x i m a t i o n t o c o n v e r t t h e u n k n o w n a n a l o g s i g n a l t o a d i g i t a l v a l u e . t h e r e s u l t i s f e d t o t h e a d d a t a . i n p u t c h a n n e l s a r e s e l e c t e d b y t h e a n a l o g i n p u t m u l t i p l e x e r v i a t h e a d c s / r a s b i t s a d 0 ~ a d 4 . 1 0 - b i t r e s o l u t i o n : 0 x 0 0 - 0 0 ~ 0 x c 0 - f f ( 0 b 1 1 0 0 0 0 0 0 - 1 1 1 1 1 1 1 1 ) s t a r t ( 0 x 0 0 - 0 0 ) : 0 v r e f ~ ( 1 / 1 0 2 4 ) v r e f f u l l ( 0 x c 0 - f f ) : ( 1 0 2 3 / 1 0 2 4 ) v r e f ~ v r e f c o n v e r s i o n t i m e : 1 2 c l o c k t i m e o f i n t e r n a l c l o c k s o u r c e 8 . 1 1 . 2 c o n t r o l r e g i s t e r e r a ( a d c h a n n e l s e l e c t r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ 0 0 0 1 _ 1 1 1 1 ) b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 a d c 0 0 a d 4 a d 3 a d 2 a d 1 a d 0
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r 3 0 p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 ) 1 1 . 2 2 . 2 0 0 6 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) e r a [ 0 ~ 4 ] : a d c h a n n e l s e l e c t o r a d 4 a d 3 a d 2 a d 1 a d 0 c h a n n e l i / o p o r t 0 0 0 0 0 0 p 5 0 0 0 0 0 1 1 p 5 1 0 0 0 1 0 2 p 5 2 0 0 0 1 1 3 p 5 3 0 0 1 0 0 4 p 5 4 0 0 1 0 1 5 p 5 5 0 0 1 1 0 6 p 5 6 0 0 1 1 1 7 p 5 7 0 1 0 0 0 8 p 8 0 0 1 0 0 1 9 p 8 1 0 1 0 1 0 1 0 p 8 2 0 1 0 1 1 1 1 p 8 3 0 1 1 0 0 1 2 p 8 4 0 1 1 0 1 1 3 p 8 5 0 1 1 1 0 1 4 p 8 6 0 1 1 1 1 1 5 p 8 7 1 0 0 0 0 1 6 p 6 0 1 0 0 0 1 1 7 p 6 1 1 0 0 1 0 1 8 p 6 2 1 0 0 1 1 1 9 p 6 3 1 0 1 0 0 2 0 p 6 4 1 0 1 0 1 2 1 p 6 5 1 0 1 1 0 2 2 p 6 6 1 0 1 1 1 2 3 p 6 7 e r a [ 7 ] a d c o n v e r t e r r e a d y f l a g 0  1 : s t a r t a d c o n v e r s i o n ( s e t b y f i r m w a r e ) . 1  0 : w h e n a d c o n v e r s i o n i s f i n i s h e d a n d h a s m o v e d d i g i t a l d a t a i n t o t h e a d d a t a r e g i s t e r , t h i s b i t w i l l b e s e t b y h a r d w a r e . n o t e h a r d w a r e c a n e n a b l e t h i s f u n c t i o n o n l y a t a d c h a n n e l s e l e c t o f t h e f u n c t i o n a l i / o p o r t . a f t e r a p o w e r - o n r e s e t , t h e i n i t i a l v a l u e o f t h i s r e g i s t e r i s 0 b 0 0 0 1 _ 1 1 1 1 . e r b ( a d l s b d a t a r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ 0 0 0 0 _ 0 0 0 0 ) b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 b i t 1 b i t 0 0 0 0 0 0 0 8 b i t s a d l s b d i g i t a l d a t a
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 1 ) 0 4 . 2 0 . 2 0 0 7 3 1 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) e r c ( a d m s b d a t a r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ 0 0 0 0 _ 0 0 0 0 ) b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 b i t 9 b i t 8 b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 2 b i t s a d m s b d i g i t a l d a t a . e r d ( a d c o n t r o l r e g i s t e r ) d e f a u l t v a l u e : ( 0 b _ 0 0 0 0 _ 0 0 0 0 ) b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 0 0 0 0 0 - a d p s 1 a d p s 0 e r d [ 0 1 ] : t h e c l o c k s o u r c e o f a d c o n v e r t i n g t i m e . 0 0 : 2 5 6 k h z 0 1 : 1 2 8 k h z 1 0 : 6 4 k h z 1 1 : 3 2 k h z 8 . 1 2 e e p r o m f o u r b y t e s o f e e p r o m a r e l o c a t e d i n t h e r 2 c ~ r 2 f o f b a n k 3 . t h e s t o r e d d a t a o f e e p r o m a r e n o t e r a s e d w h e n t h e p o w e r i s o f f a n d c a n b e r e a d a n d r e - w r i t t e n b y f i r m w a r e . i n s o m e s p e c i a l c a s e o f a p p l i c a t i o n , f o r e x a m p l e , c o r d l e s s k e y b o a r d c o n t r o l l e r , i t c a n s t o r e i m p o r t a n t d a t a , s u c h a s t h e c o r d l e s s k e y b o a r d s d e v i c e i d e n t i c a l n u m b e r . a c o n t r o l r e g i s t e r , e r a c o n t r o l s t h e e e p r o m , t h a t i s , t o r e a d , w r i t e , o r t o e r a s e t h e d a t a f r o m e e p r o m . w r i t i n g a c o m m a n d i n t o t h i s r e g i s t e r w i l l e x e c u t e a n a c t i o n t o t h e e e p r o m . t h e c o m m a n d v a l u e i s d e f i n e d i n t h e f o l l o w i n g t a l e . n o t e t h a t t h e r e i s a n e x e c u t i o n t i m e l a p s f o r e a c h c o m m a n d . b e f o r e w r i t i n g t h e n e x t c o m m a n d i n t o t h e c o n t r o l r e g i s t e r , a l l o w e n o u g h t i m e f o r t h e e e p r o m t o f i n i s h t h e p r e v i o u s c o m m a n d . c o m m a n d v a l u e a c t i o n e x e c u t i o n t i m e 0 b _ 0 0 0 0 _ 0 0 0 0 r e a d 1 m s 0 b _ 0 0 0 0 _ 0 0 0 1 w r i t e 9 m s 0 b _ 0 0 0 0 _ 0 0 1 0 e r a s e 1 2 8 m s 0 b _ 0 0 0 0 _ 0 0 1 1 d i s a b l e n . a .
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r 3 2 p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 ) 1 1 . 2 2 . 2 0 0 6 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) 9 a b s o l u t e m a x i m u m r a t i n g s s y m b o l m i n m a x u n i t t e m p e r a t u r e u n d e r b i a s 0 7 0 ? c s t o r a g e t e m p e r a t u r e - 6 5 1 5 0 ? c i n p u t v o l t a g e - 0 . 5 6 . 0 v o u t p u t v o l t a g e - 0 . 5 6 . 0 v 1 0 d c e l e c t r i c a l c h a r a c t e r i s t i c t = 2 5 ? c , v d d = 5 v , v s s = 0 v s y m b o l p a r a m e t e r c o n d i t i o n m i n t y p e m a x u n i t 3 . 3 v r e g u l a t o r v r a g o u t p u t v o l t a g e o f 3 . 3 v r e g u l a t o r v d d = 5 v 3 . 0 3 . 3 3 . 6 v v r e s e t l l o w p o w e r r e s e t d e t e c t i n g l o w v o l t a g e - - - 2 . 2 v v r e s e t h l o w p o w e r r e s e t d e t e c t i n g h i g h v o l t a g e - 3 . 0 - - v i r e g 3 . 3 v r e g u l a t o r d r i v i n g c a p a c i t y v 3 . 3 = 3 . 3 v - - 1 0 0 m a m c u o p e r a t i o n i i l i n p u t l e a k a g e c u r r e n t f o r i n p u t p i n s v i n = v d d , v s s - - k 1 a v i h x c l o c k i n p u t h i g h v o l t a g e o s c i 2 . 5 - - v v i l x c l o c k i n p u t l o w v o l t a g e o s c i - - 1 . 0 v i c c 1 v d d o p e r a t i n g s u p p l y c u r r e n t C n o r m a l f r e q u e n c y o p e r a t i o n m o d e f r e q . = 6 m h z - - 1 0 m a i c c 2 v d d o p e r a t i n g s u p p l y c u r r e n t C n o r m a l f r e q u e n c y o p e r a t i o n m o d e f r e q . = 1 2 m h z - - 2 0 m a i c c 3 v d d o p e r a t i n g s u p p l y c u r r e n t C d u a l c l o c k m o d e f r e q . = 2 5 6 k h z - - 2 5 0 a i s b 1 o p e r a t i n g s u p p l y c u r r e n t 1 C p o w e r d o w n m o d e w d t d i s a b l e d - - 1 0 0 a g p i o p i n s v i h i n p u t h i g h v o l t a g e p o r t 5 & p o r t 6 & p o r t 7 & p o r t 8 & p o r t 9 2 . 0 - - v v i l i n p u t l o w v o l t a g e p o r t 5 & p o r t 6 & p o r t 7 & p o r t 8 & p o r t 9 - - 0 . 8 v i o h 1 o u t p u t h i g h v o l t a g e ( p 7 0 ~ p 7 3 , p 7 6 a n d p 7 7 ) i s i n k = 1 0 . 0 m a v d d = 5 v - 1 0 - m a
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 1 ) 0 4 . 2 0 . 2 0 0 7 3 3 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) s y m b o l p a r a m e t e r c o n d i t i o n m i n t y p e m a x u n i t i o h 2 o u t p u t h i g h v o l t a g e ( p 7 4 , p 7 5 ) i s i n k = 5 . 0 m a v d d = 5 v - 5 - m a i o h 3 o u t p u t h i g h v o l t a g e ( p o r t 5 & p o r t 6 & p o r t 8 a n d p 9 0 ~ p 9 3 , p 9 5 , p 9 6 ) i s i n k = 1 0 . 0 m a v r e g = 3 . 3 v - 1 0 - m a i o l 1 o u t p u t l o w v o l t a g e ( p 7 6 a n d p 7 7 n o r m a l m o d e ) i s i n k = 1 0 . 0 m a v d d = 5 v - 1 0 - m a i o l 2 o u t p u t l o w v o l t a g e ( p 7 4 , p 7 5 ) i s i n k = 1 0 . 0 m a v d d = 5 v - 5 - m a i o l 3 o u t p u t l o w v o l t a g e ( p 7 0 ~ p 7 3 , p 7 6 a n d p 7 7 s i n k l e d ) i s i n k = 1 0 . 0 m a v d d = 5 v - 1 0 - m a i o l 4 o u t p u t l o w v o l t a g e ( p 9 0 ~ p 9 3 , p 9 5 , p 9 6 n o r m a l m o d e ) i s i n k = 1 0 . 0 m a v r e g = 3 . 3 v - 1 0 - m a i o l 5 o u t p u t l o w v o l t a g e ( p 9 0 ~ p 9 3 , p 9 5 , p 9 6 s i n k l e d ) i s i n k = 1 0 . 0 m a v r e g = 3 . 3 v - 1 0 - m a r p h 1 p u l l - h i g h r e s i s t o r ( p o r t 5 , 6 , 8 , 9 ) i n p u t p i n w i t h p u l l - h i g h r e s i s t o r , v r e g = 3 . 3 v - 2 5 - k w r p h 2 p u l l - h i g h r e s i s t o r ( p . 7 4 ~ p . 7 7 ) ( p 7 4 / p 7 5 ) p s 2 m o d e i n p u t p i n w i t h p u l l - h i g h r e s i s t o r , v d d = 5 v - 2 . 2 - k w u s b i n t e r f a c e v o h s t a t i c o u t p u t h i g h 2 . 8 - 3 . 6 v v o l s t a t i c o u t p u t l o w - - 0 . 3 v v d i d i f f e r e n t i a l i n p u t s e n s i t i v i t y 0 . 2 - - v v c m d i f f e r e n t i a l i n p u t c o m m a n d m o d e r a n g e 0 . 8 - 2 . 5 v v s e s i n g l e e n d e d r e c e i v e r t h r e s h o l d 0 . 8 - 2 . 0 v c i n t r a n s c e i v e r c a p a c i t a n c e - - 2 0 p f v r g o u t p u t v o l t a g e o f i n t e r n a l r e g u l a t o r 3 . 0 - 3 . 6 v r p h 3 p u l l - h i g h r e s i s t o r ( p . 7 5 / d - ) u s b o p e r a t i o n m o d e - 1 . 5 - k w
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r 3 4 p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 ) 1 1 . 2 2 . 2 0 0 6 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) 1 1 a p p l i c a t i o n c i r c u i t n o t e a . b c 1 , b c 2 : l o a d c a p a c i t o r b . c 1 ( b y p a s s c a p a c i t o r ) : t h a t p l a c e d a d j a c e n t t o v d d p i n , t o m i n i m i z e n o i s e . c . c 2 , c 3 ( p o w e r c a p a c i t o r ) : t h a t p l a c e d a d j a c e n t t o t h e p o w e r s o u r c e , w i l l i m p r o v e t r a n s i e n t r e s p o n s e a n d r i p p l e r e j e c t i o n .
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 1 ) 0 4 . 2 0 . 2 0 0 7 3 5 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) a p p e n d i x a s p e c i a l r e g i s t e r m a p o p e r a t i o n r e g i s t e r s a d d r e s s n a m e b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 d e f a u l t v a l u e 0 x 0 0 r 0 i n d i r e c t a d d r e s s i n g r e g i s t e r 0 b _ 0 0 0 0 _ 0 0 0 0 0 x 0 1 r 1 ( t c c ) t i m e r / c l o c k c o u n t e r 0 b _ 0 0 0 0 _ 0 0 0 0 0 x 0 2 r 2 ( p c ) p r o g r a m c o u n t e r 0 b _ 0 0 0 0 _ 0 0 0 0 0 x 0 3 r 3 ( s t a t u s ) p s 2 p s 1 p s 0 t p z d c c 0 b _ 0 0 0 1 _ 1 x x x 0 x 0 4 r 4 ( r s r ) b k 1 b k 0 s e l e c t t h e r e g i s t e r ( a d d r e s s : 0 0 ~ 3 f ) i n i n d i r e c t a d d r e s s i n g m o d e 0 x 0 5 r 5 ( p o r t 5 ) p 5 7 p 5 6 p 5 5 p 5 4 p 5 3 p 5 2 p 5 1 p 5 0 0 b _ 0 0 0 0 _ 0 0 0 0 0 x 0 6 r 6 ( p o r t 6 ) p 6 7 p 6 6 p 6 5 p 6 4 p 6 3 p 6 2 p 6 1 p 6 0 0 b _ 0 0 0 0 _ 0 0 0 0 0 x 0 7 r 7 ( p o r t 7 ) p 7 7 p 7 6 p 7 5 / d - / d a t a p 7 4 / d + / c l k - p 7 2 p 7 1 p 7 0 0 b _ 0 0 0 0 _ u 0 0 0 0 x 0 8 r 8 ( p o r t 8 ) p 8 7 p 8 6 p 8 5 p 8 4 p 8 3 p 8 2 p 8 1 p 8 0 0 b _ 0 0 0 0 _ 0 0 0 0 0 x 0 9 r 9 ( p o r t 9 ) - p 9 6 p 9 5 - p 9 3 p 9 2 p 9 1 p 9 0 0 b _ u 0 0 u _ 0 0 0 0 0 x 0 a r a - - - - - e e _ o k e e _ c 1 e e _ c 0 0 b _ 1 1 1 1 _ 1 1 1 1 0 x 0 b r b s e 2 . f s e 1 . f s r . 2 s r . 1 s r . 0 d b 2 d b 1 d b 0 0 b _ 1 1 1 1 _ 1 1 1 1 0 x 0 c r c e p 0 _ w e p 0 _ r e p 1 _ r e p 2 _ r e p 2 _ w u d c _ s u s p e n d u d c _ w r i t i n g s t a l l 0 b _ 0 0 0 0 _ 0 0 0 0 0 x 0 d r d u s b a p p l i c a t i o n f i f o a d d r e s s r e g i s t e r 0 b _ 0 0 0 0 _ 0 0 0 0 0 x 0 e r e u s b a p p l i c a t i o n f i f o d a t a r e g i s t e r 0 b _ 0 0 0 0 _ 0 0 0 0 0 x 0 f r f u s b h o s t r e s u m e _ i f s e 1 _ i f s e 1 _ i f p o r t 7 s t a t e c h a n g e _ 1 f u s b r e s e t _ i f u s b s u s p e n d _ i f e p 0 _ i f t c c _ i f 0 b _ 0 0 0 0 _ 0 0 0 0
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r 3 6 p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 ) 1 1 . 2 2 . 2 0 0 6 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) c o n t r o l r e g i s t e r s a d d r e s s n a m e b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 d e f a u l t v a l u e c o n t s 7 i n t t s r 2 s r 1 t s r 0 p s r 2 p s r 1 p s r 0 0 b _ 0 0 1 1 _ 1 1 1 1 0 x 0 5 i o c 5 p o r t 5 d i r e c t i o n c o n t r o l r e g i s t e r 0 b _ 1 1 1 1 _ 1 1 1 1 0 x 0 6 i o c 6 p o r t 6 d i r e c t i o n c o n t r o l r e g i s t e r 0 b _ 1 1 1 1 _ 1 1 1 1 0 x 0 7 i o c 7 p o r t 7 d i r e c t i o n c o n t r o l r e g i s t e r 0 b _ 1 1 1 1 _ 1 1 1 1 0 x 0 8 i o c 8 p o r t 8 d i r e c t i o n c o n t r o l r e g i s t e r 0 b _ 1 1 1 1 _ 1 1 1 1 0 x 0 9 i o c 9 p o r t 9 d i r e c t i o n c o n t r o l r e g i s t e r 0 b _ 1 1 1 1 _ 1 1 1 1 0 x 0 a i o c a d u a l _ f r q . 1 d u a l _ f r q . 0 - r e m o t e _ w a k e u p e x r e g _ s e l p d a p s / 2 u s b 0 b _ 1 1 x 0 _ 0 0 0 0 0 x 0 b i o c b - / p 9 6 / p 9 5 / p 9 4 / p 9 3 / p 9 2 / p 9 1 / p 9 0 0 b _ x 1 1 1 _ 1 1 1 1 0 x 0 c i o c c - p 9 6 p 9 5 - p 9 3 p 9 2 p 9 1 p 9 0 0 b _ x 0 0 x _ 0 0 0 0 0 x 0 d i o c d - / p 9 6 / p 9 5 - / p 9 3 / p 9 2 / p 9 1 / p 9 0 0 b _ x 0 0 x _ 0 0 0 0 0 x 0 e i o c e / d u a l c l o c k / w u e w t e r u n d e v i c e _ r e s u m e / p u 8 / p u 6 / p u 5 0 b _ 1 1 0 1 _ 0 1 1 1 0 x 0 f i o c f u s b h o s t r e s u m e _ i e s e 2 _ i e s e 1 _ i e p o r t 7 s t a t e c h a n g e _ 1 f u s b r e s e t _ i e u s b s u s p e n d _ i e e p 0 _ i e t c c _ i e 0 b _ 0 0 0 0 _ 0 0 0 0 e x t r a r e g i s t e r ( i o c a [ 3 ] = 1 ) a d d r e s s n a m e b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 d e f a u l t v a l u e 0 x 0 a e r a a d c - - a d 4 a d 3 a d 2 a d 1 a d 0 0 b _ 0 0 0 1 _ 1 1 1 1 0 x 0 b e r b d i g i t a l d a t a ( b i t 1 ~ b i t 0 ) 0 b _ 0 0 0 0 _ 0 0 0 0 0 x 0 c e r c d i g i t a l d a t a ( b i t 1 0 ~ b i t 2 ) 0 b _ 0 0 0 0 _ 0 0 0 0 0 x 0 d e r d - - - - - - a d s p 1 a d s p 0 0 b _ 0 0 0 0 _ 0 0 0 0 0 x 0 e e r e p e n 2 p e n 1 - - - p s 2 p s 1 p s 0 0 b _ 0 0 0 0 _ 0 0 0 1
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 1 ) 0 4 . 2 0 . 2 0 0 7 3 7 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) b i n s t r u c t i o n s e t e a c h i n s t r u c t i o n i n t h e i n s t r u c t i o n s e t i s a 1 3 - b i t w o r d d i v i d e d i n t o a n o p c o d e a n d o n e o r m o r e o p e r a n d s . a l l i n s t r u c t i o n s a r e e x e c u t e d w i t h i n o n e s i n g l e i n s t r u c t i o n c y c l e ( c o n s i s t i n g o f t w o o s c i l l a t o r p e r i o d s ) , u n l e s s t h e p r o g r a m c o u n t e r i s c h a n g e d b y - ( a ) e x e c u t i n g t h e i n s t r u c t i o n " m o v r 2 , a " , " a d d r 2 , a " , " t b l " , o r a n y o t h e r i n s t r u c t i o n s t h a t w r i t e t o r 2 ( e . g . " s u b r 2 , a " , " b s r 2 , 6 " , " c l r r 2 " , ) . ( b ) e x e c u t e c a l l , r e t , r e t i , r e t l , j m p , c o n d i t i o n a l s k i p ( j b s , j b c , j z , j z a , d j z , d j z a ) w h i c h w e r e t e s t e d t o b e t r u e . u n d e r t h e s e c a s e s , t h e e x e c u t i o n t a k e s t w o i n s t r u c t i o n c y c l e s . i n a d d i t i o n , t h e i n s t r u c t i o n s e t h a s t h e f o l l o w i n g f e a t u r e s : ( 1 ) . e v e r y b i t o f a n y r e g i s t e r c a n b e s e t , c l e a r e d , o r t e s t e d d i r e c t l y . ( 2 ) . t h e i / o r e g i s t e r c a n b e r e g a r d e d a s g e n e r a l r e g i s t e r . t h a t i s , t h e s a m e i n s t r u c t i o n c a n o p e r a t e o n i / o r e g i s t e r . l e g e n d : r = r e g i s t e r d e s i g n a t o r t h a t s p e c i f i e s w h i c h o n e o f t h e 6 4 r e g i s t e r s ( i n c l u d i n g o p e r a t i o n a n d g e n e r a l p u r p o s e r e g i s t e r s ) i s t o b e u t i l i z e d b y t h e i n s t r u c t i o n . b i t s 6 a n d 7 i n r 4 d e t e r m i n e t h e s e l e c t e d r e g i s t e r b a n k . b = b i t f i e l d d e s i g n a t o r t h a t s e l e c t s t h e v a l u e f o r t h e b i t l o c a t e d i n t h e r e g i s t e r r a n d w h i c h a f f e c t s t h e o p e r a t i o n . k = 8 o r 1 0 - b i t c o n s t a n t o r l i t e r a l v a l u e b i n a r y i n s t r u c t i o n h e x m n e m o n i c o p e r a t i o n s t a t u s a f f e c t e d 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 n o p n o o p e r a t i o n n o n e 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 d a a d e c i m a l a d j u s t a c 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 2 c o n t w a ? c o n t n o n e 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 3 s l e p 0 ? w d t , s t o p o s c i l l a t o r t , p 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 4 w d t c 0 ? w d t t , p 0 0 0 0 0 0 0 0 0 r r r r 0 0 0 r i o w r a ? i o c r n o n e 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 e n i e n a b l e i n t e r r u p t n o n e 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 1 1 d i s i d i s a b l e i n t e r r u p t n o n e 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 2 r e t [ t o p o f s t a c k ] ? p c n o n e 0 0 0 0 0 0 0 0 1 0 0 1 1 0 0 1 3 r e t i [ t o p o f s t a c k ] ? p c , e n a b l e i n t e r r u p t n o n e 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 1 4 c o n t r c o n t ? a n o n e 0 0 0 0 0 0 0 0 1 r r r r 0 0 1 r i o r r i o c r ? a n o n e 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 2 0 t b l r 2 + a ? r 2 , b i t s 8 ~ 9 o f r 2 u n c h a n g e d z , c , d c 0 0 0 0 0 0 1 r r r r r r 0 0 r r m o v r , a a ? r n o n e 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 8 0 c l r a 0 ? a z 0 0 0 0 0 1 1 r r r r r r 0 0 r r c l r r 0 ? r z 0 0 0 0 1 0 0 r r r r r r 0 1 r r s u b a , r r - a ? a z , c , d c 0 0 0 0 1 0 1 r r r r r r 0 1 r r s u b r , a r - a ? r z , c , d c
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r 3 8 p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 ) 1 1 . 2 2 . 2 0 0 6 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) b i n a r y i n s t r u c t i o n h e x m n e m o n i c o p e r a t i o n s t a t u s a f f e c t e d 0 0 0 0 1 1 0 r r r r r r 0 1 r r d e c a r r - 1 ? a z 0 0 0 0 1 1 1 r r r r r r 0 1 r r d e c r r - 1 ? r z 0 0 0 1 0 0 0 r r r r r r 0 2 r r o r a , r a v r ? a z 0 0 0 1 0 0 1 r r r r r r 0 2 r r o r r , a a v r ? r z 0 0 0 1 0 1 0 r r r r r r 0 2 r r a n d a , r a & r ? a z 0 0 0 1 0 1 1 r r r r r r 0 2 r r a n d r , a a & r ? r z 0 0 0 1 1 0 0 r r r r r r 0 3 r r x o r a , r a ? r ? a z 0 0 0 1 1 0 1 r r r r r r 0 3 r r x o r r , a a ? r ? r z 0 0 0 1 1 1 0 r r r r r r 0 3 r r a d d a , r a + r ? a z , c , d c 0 0 0 1 1 1 1 r r r r r r 0 3 r r a d d r , a a + r ? r z , c , d c 0 0 1 0 0 0 0 r r r r r r 0 4 r r m o v a , r r ? a z 0 0 1 0 0 0 1 r r r r r r 0 4 r r m o v r , r r ? r z 0 0 1 0 0 1 0 r r r r r r 0 4 r r c o m a r / r ? a z 0 0 1 0 0 1 1 r r r r r r 0 4 r r c o m r / r ? r z 0 0 1 0 1 0 0 r r r r r r 0 5 r r i n c a r r + 1 ? a z 0 0 1 0 1 0 1 r r r r r r 0 5 r r i n c r r + 1 ? r z 0 0 1 0 1 1 0 r r r r r r 0 5 r r d j z a r r - 1 ? a , s k i p i f z e r o n o n e 0 0 1 0 1 1 1 r r r r r r 0 5 r r d j z r r - 1 ? r , s k i p i f z e r o n o n e 0 0 1 1 0 0 0 r r r r r r 0 6 r r r r c a r r ( n ) ? a ( n - 1 ) , r ( 0 ) ? c , c ? a ( 7 ) c 0 0 1 1 0 0 1 r r r r r r 0 6 r r r r c r r ( n ) ? r ( n - 1 ) , r ( 0 ) ? c , c ? r ( 7 ) c 0 0 1 1 0 1 0 r r r r r r 0 6 r r r l c a r r ( n ) ? a ( n + 1 ) , r ( 7 ) ? c , c ? a ( 0 ) c 0 0 1 1 0 1 1 r r r r r r 0 6 r r r l c r r ( n ) ? r ( n + 1 ) , r ( 7 ) ? c , c ? r ( 0 ) c 0 0 1 1 1 0 0 r r r r r r 0 7 r r s w a p a r r ( 0 - 3 ) ? a ( 4 - 7 ) , r ( 4 - 7 ) ? a ( 0 - 3 ) n o n e 0 0 1 1 1 0 1 r r r r r r 0 7 r r s w a p r r ( 0 - 3 ) ? r ( 4 - 7 ) n o n e 0 0 1 1 1 1 0 r r r r r r 0 7 r r j z a r r + 1 ? a , s k i p i f z e r o n o n e 0 0 1 1 1 1 1 r r r r r r 0 7 r r j z r r + 1 ? r , s k i p i f z e r o n o n e 0 1 0 0 b b b r r r r r r 0 x x x b c r , b 0 ? r ( b ) n o n e 2 0 1 0 1 b b b r r r r r r 0 x x x b s r , b 1 ? r ( b ) n o n e 0 1 1 0 b b b r r r r r r 0 x x x j b c r , b i f r ( b ) = 0 , s k i p n o n e 0 1 1 1 b b b r r r r r r 0 x x x j b s r , b i f r ( b ) = 1 , s k i p n o n e 1 0 0 k k k k k k k k k k 1 k k k c a l l k p c + 1 ? [ s p ] , ( p a g e , k ) ? p c n o n e 1 0 1 k k k k k k k k k k 1 k k k j m p k ( p a g e , k ) ? p c n o n e 1 1 0 0 0 k k k k k k k k 1 8 k k m o v a , k k ? a n o n e 1 1 0 0 1 k k k k k k k k 1 9 k k o r a , k a k ? a z 1 1 0 1 0 k k k k k k k k 1 a k k a n d a , k a & k ? a z 1 1 0 1 1 k k k k k k k k 1 b k k x o r a , k a ? k ? a z 1 1 1 0 0 k k k k k k k k 1 c k k r e t l k k ? a , [ t o p o f s t a c k ] ? p c n o n e 1 1 1 0 1 k k k k k k k k 1 d k k s u b a , k k - a ? a z , c , d c 1 1 1 1 1 k k k k k k k k 1 f k k a d d a , k k + a ? a z , c , d c n o t e : 1 t h i s i n s t r u c t i o n i s a p p l i c a b l e t o i o c x o n l y . 2 t h i s i n s t r u c t i o n i s n o t r e c o m m e n d e d f o r r e , r f o p e r a t i o n .
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 1 ) 0 4 . 2 0 . 2 0 0 7 3 9 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) c c o d e o p t i o n r e g i s t e r e m 7 8 m 6 1 1 e h a s t w o c o d e o p t i o n r e g i s t e r s , w h i c h a r e n o t p a r t o f t h e n o r m a l p r o g r a m m e m o r y . t h e o p t i o n b i t s c a n n o t b e a c c e s s e d d u r i n g n o r m a l p r o g r a m e x e c u t i o n . a d d r e s s 0 0 0 : b i t 1 2 1 1 1 0 9 8 7 6 5 4 3 2 1 0 m n e m o n i c i d _ 8 i d _ 7 i d _ 6 i d _ 5 i d _ 4 i d _ 3 i d _ 2 i d _ 1 i d _ 0 o s t _ 1 o s t _ 0 f r e q u e n c y / p r o t e c t a d d r e s s 0 0 1 : b i t 5 4 3 2 1 0 m n e m o n i c / a d _ h o l d / r . s . - - - - - - - - p a c k a g e _ 1 p a c k a g e _ 0 b i t 1 2 1 1 1 0 9 8 7 6 m n e m o n i c q t p _ c o d e 1 q t p _ c o d e 0 e p 2 _ m a x s i z e _ 2 e p 2 _ m a x s i z e _ 1 e p 2 _ m a x s i z e _ 0 e p 2 _ d i r e p 2 _ e n a b l e a d d r e s s 0 0 0 : b i t 1 ( f r e q u e n c y ) : f r e q u e n c y s e l e c t i o n 0 : m c u r u n o n 1 2 m h z 1 : m c u r u n o n 6 m h z b i t s 3 ~ 2 ( o s t _ 1 ~ o s t _ 0 ) : o s c i l l a t o r s t a r t - u p t i m e . 0 0 : 5 0 0 s 0 1 : 2 m s 1 0 : 8 m s 1 1 : 1 6 m s b i t s 4 ~ 1 2 : u s e r i d a d d r e s s 0 0 1 : b i t s 1 ~ 0 ( p a c k a g e _ 1 ~ p a c k a g e _ 0 ) : p a c k a g e t y p e s e l e c t i o n 0 0 : n o t d e f i n e d 0 1 : 4 0 p i n s 1 0 : n o t d e f i n e d 1 1 : 4 4 p i n s b i t s 3 ~ 2 : r e s e r v e d b i t s
e m 7 8 m 6 1 1 e u n i v e r s a l s e r i a l b u s s e r i e s m i c r o c o n t r o l l e r 4 0 p r o d u c t s p e c i f i c a t i o n ( v 1 . 1 ) 1 1 . 2 2 . 2 0 0 6 ( t h i s s p e c i f i c a t i o n i s s u b j e c t t o c h a n g e w i t h o u t f u r t h e r n o t i c e ) b i t 4 ( / r . s . ) : d - p u l l - u p r e s i s t a n c e 0 : c o n n e c t r e s i s t o r s w i t c h 1 : d i s c o n n e c t r e s i s t o r s w i t c h b i t 5 ( / a d _ h o l d ) : h a l t s t h e m c u d u r i n g a d c o n v e r s i o n 0 : h a l t s t h e m c u d u r i n g a d c o n v e r s i o n 1 : m c u k e e p s r u n n i n g d u r i n g a d c o n v e r s i o n b i t 6 ( e p 2 _ e n a b l e ) : e n d p o i n t 2 e n a b l e 0 : d i s a b l e 1 : e n a b l e b i t 7 ( e p 2 _ d i r ) : e n d p o i n t 2 d i r e c t i o n 0 : o u t 1 : i n b i t s 1 0 ~ 8 ( e p 2 _ m a x s i z e _ 2 ~ 0 ) : e n d p o i n t 2 m a x i m u m s i z e 0 0 0 : 1 b y t e 0 0 1 : 2 b y t e s 0 1 0 : 3 b y t e s 0 1 1 : 4 b y t e s 1 0 0 : 5 b y t e 1 0 1 : 6 b y t e s 1 1 0 : 7 b y t e s 1 1 1 : 8 b y t e s b i t s 1 2 ~ 1 1 : v a l u e s a r e f i x e d


▲Up To Search▲   

 
Price & Availability of EM78M611E

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X